Tag Info

New answers tagged

1

Looking in the postinst script (/var/lib/dpkg/info/squid3.postinst), this part stands out: cache_dir=`grepconf2 cache_dir /var/spool/squid3` usr=`grepconf cache_effective_user proxy` grp=`grepconf cache_effective_group proxy` if [ "$(stat -c %U $cache_dir)" != "$usr" ] || [ "$(stat -c %G $cache_dir)" != "$grp" ] ; then chown $usr:$grp $cache_dir ...


1

Had same problem after changing from dynamic to static IP. My Network configured now: STATIC - NO IPv6 and not intending of using a mailserver. I resolved the problem by doing: 1: run dpkg-reconfigure exim4-config 2: When you get to the DNS lookups question -> Set the DNS lookups to minimum (Dial up) It gave me an error that this kind of lookups wasn't ...


0

Your wireless card is supported in the iwlegacy driver which is in the non free repo Add a "non-free" component to /etc/apt/sources.list, for example: deb http://http.debian.net/debian/ wheezy main contrib non-free Update the list of available packages and install the firmware-iwlwifi package: $ sudo apt-get update && apt-get install ...


1

I found a solution. Create a file in /etc/polkit-1/localauthority/50-local.d/, for instance called udisks.pkla, with the following content: [Allow normal users to access removable media] Identity=unix-group:plugdev Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject ResultAny=yes ResultActive=yes ResultInactive=yes


0

First update your apt database by apt-get update Then search for all the vim packages, since the package name may slightly different for different distros. So better search using very well known names. apt-cache search vim | grep gtk or apt-cache search vim This will list all the packages related to vim and gtk. Pick the right one and then install it ...


0

In the latest Google Compute Engine developer's console, there is an "SSH Keys" configuration section. Generating the equivalent REST (JSON in this case) of the metadata, that shows: "metadata": { "kind": "compute#metadata", "fingerprint": "some_obfuscated_fingerprint", "items": [{ "key": "sshKeys", "value": "eric:ssh-rsa obfuscated_public_key_here ...


1

Newer versions of Gnome 3 are available for Debian Testing. To enable it, you need to alter /etc/apt/sources.list The following lines will backup your /etc/apt/sources.list, update it accordingly and upgrade Debian to testing. # cp /etc/apt/sources.list{,.bak} # sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list # apt-get update # apt-get ...


1

There are several ways to tune I/O performance. file system choice - choose a file system depending on what your typical data looks like - some file systems handle better lots of smaller files, some do well for large files, some don't scale well when accessing (especially creating) multiple files at once. Defragmenting might help on spinning plate drives ...


-1

This is because chrome beta and cups had issues where they created millions of files in /tmp. If /tmp is a tmpfs for you, then try unmounting it and remounting it. Otherwise, rm -rf /tmp then recreate it.


1

Yes. Debian distributes CD, DVD, and Blu-ray images. There are various methods to download them; see https://www.debian.org/CD/. There are also vendors who sell them, in case you don't have sufficient bandwidth to download the images yourself. I believe CD1 should include an GNOME graphical desktop. There are CD1 variants for LXDE and KDE as well. DVD1 ...


2

As indicated in the comments, your system is using systemd for service management. Systemd is a replacement for the traditional SysVinit. It also bundles in a lot of other things such as a syslog collector. In this case, to get access to your logs, you need to use the journalctl command. $ journalctl If you want to see only the sshd logs, you can pass a ...


1

So, based on @wurtel's answer and the research I've done, here's the script and the steps I came up with. 1) Unmount the "home" partition umount /dev/mapper/APP05-home 2) Resize the "home" filesystem to a size of 2G resize2fs -p /dev/mapper/APP05-home 2G 3) Reduce the size of the "home" logical volume to 2,1G (the volume needs to be a little bit bigger ...


1

Ignore the first "rootfs" entry, the real mount is shown by the /dev/mapper/APP05-root line. To reduce filesystem size, first shrink the filesystem size with resize2fs, and then use lvresize to reduce the device size. To increase the size, use the utilities in reverse order. Reducing the filesystem size needs to be done while the filesystem is not mounted. ...


1

Port 443 is HTTPS. From your netstat output: tcp6 0 0 [::]:https [::]:* LISTEN It is clear that a process is listening on port 443. To confirm whether the above is Apache (httpd) process, it is important to run the command as root. Use ss instead as netstat is deprecated: # ss -tlnp


1

Did you enable mod_ssl? Since you're running Debian, this is the way to do it (run as root, or via sudo): a2enmod ssl


1

This is an alias I put in my ~/.bashrc (fw means "firewall" which is descriptive enough for me, change it if you'd like): Set up /etc/sudoers to allow you to run the iptables command with no password or only run it as root. alias fw='clear ; sudo iptables --line-numbers -nvL ; echo ; echo '\''nat:'\'' ; echo ; sudo iptables -t nat --line-numbers -nvL ; ...


1

Since file doesn't recognize it, the vendor probably used a custom SquashFS magic signature. I expect that unsquashfs is also giving you an error about not being able to find a valid superblock. Give sasquatch a try; it's a modified version of unsquashfs that attempts to support such vendor hacks.


5

Your command only lists the default filter table. There are a total of five tables: filter, nat, mangle, raw and security. These can be selected using the -t option: iptables -t nat -L -n


4

Netfilter encourages to use iptables-save command since it will provide you a detailed view of your built-in chains and those you've defined yourself. If you want to get a human readable view you can use iptables -L -v -n --line-n


0

The problem is that the graphics driver xserver-xorg-video-vmware was compiled without 3D acceleration support. This has already been fixed for newer releases, and is in debian jessie. The Solution Recompile the package with 3D acceleration support install dependencies for VMware Tools sudo apt-get install linux-headers-$(uname -r) make gcc Install ...


0

I don't think you can install the free driver without changing the sources. I looked at https://wiki.debian.org/ath9k and https://wiki.debian.org/ath9k_htc/open_firmware as well as https://wiki.debian.org/ath9k_htc and finally at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751339 . I looked at the versions of the packages mentioned in my jessie ...


2

make a new file in /bin called treesize chmod +x /bin/treesize paste this in it. #/bin/sh du -k --max-depth=1 | sort -nr | awk ' BEGIN { split("KB,MB,GB,TB", Units, ","); } { u = 1; while ($1 >= 1024) { $1 = $1 / 1024; u += 1 } $1 = sprintf("%.1f %s", $1, Units[u]); ...


0

On my Ubuntu system (Debian based) this import is provided by the package python3-gi. In older versions running with python version 2.7, this was provided by python-gi. You can install that with: sudo apt-get install python3-gi In principle it is possible to have such packages work with both python 2.7 and python 3.x. I have not investigated why this was ...


0

A few points: 1) fail2ban is just logic for modifying the system configuration so it doesn't really consume any bandwidth itself. 2) 60KB over the course of several minutes isn't that much bandwidth at all. 3) The 60KB of bandwidth you're looking at is for network traffic that matched the failed event. There's nothing you can do to lessen the traffic ...


-1

The alias directive is important here wiki.nginx.org - alias


3

You could add sudo -l to the allowed commands for all users. Edit the sudoers file with visudo and add a line like this: ALL ALL=(ALL) NOPASSWD: /usr/bin/sudo -l When a user now calls sudo -l the output looks as follows: User foo may run the following commands on this host: (ALL) NOPASSWD: /usr/bin/sudo -l Unfortunately the user has not no ...


1

Looks like you found the answer already. But another possibly easier to remember one is killall -USR1 dd (which would signal every dd process, which there is usually only one) The output shows up on the original window because you are sending a signal to the existing 'dd' command, and dd has a feature where it dumps progress to stderr when it gets that ...


2

Full credit for this answer goes to http://superuser.com/a/602436/142948 You need the -3 option for scp: scp -3 one:/opt/bigfile.tar.gz two:/opt/bigfile.tar.gz -3: Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts. ...


3

It turns out the initrd generated by Debian's live-build (and to my surprise, accepted by the kernel) is actually the concatenation of two images: a CPIO archive containing microcode updates to be applied on the processor; a gzip-ed cpio archive, which actually contains the initrd file tree (with the /etc /bin /sbin /dev ... directories that were ...


0

In the end, upgrading to Gnome 3.14 resolved the issue. My feeling is that there was some kind of bug in Gtk+-3.12.


0

Debian 7.7 (Wheezy) Fluxbox 1.3.2-4 KeePass2 2.28 mono 2.10.8.1-8 xdotool 2.20110530.1 gnupg2 2.0.19-2+deb7u2 In my experience, KeePass2 version 2.28 is the first to auto-type into a terminal or non-gui program on Debian. I can auto-type into ssh or pinentry-curses from KeePass 2.28. Auto-type fails to work with pinentry-gtk-2 when I test it. I don't ...


0

Cannot use apt-get --reinstall install cron because it gives back the following error: gateway:/home/firewall# apt-get --reinstall install cron Reading package lists... Done Building dependency tree... Done Suggested packages: anacron logrotate lockfile-progs checksecurity Recommended packages: exim4 postfix mail-transport-agent The following NEW ...


1

I do not have access to dnsmasq but according to this thread titled: dnsmasq is it caching? you can send the signal USR1 to the dnsmasq process, causing it to dump statistics to the system log. $ sudo pkill -USR1 dnsmasq Then consult the system logs: $ sudo tail /var/log/syslog Jan 21 13:37:57 dnsmasq[29469]: time 1232566677 Jan 21 13:37:57 ...


1

This command worked in the end, executed on my beaglebone as root: pkill -USR1 -n -x dd I could run the command over and over again and it would indeed update (slow transfer). Interestingly, the update would appear on the other Terminal window (i.e. the one executing the dd command): Debian GNU/Linux 7 BeagleBoard.org BeagleBone Debian Image 2014-04-23 ...


1

Following the idea using awk, I ended up using: dpkg --get-selections \ # get the list | grep -v deinstall \ # throw away deselected packages | grep ':i386' \ # get the i386 arch packages | sed 's/install//g' \ # drop 'install' to get list | sed 's/:i386/:amd64/g' \ # replace i386 ...


0

OMG, I just now realize that this may be because of the environment: Vagrant. So, I remove my custom supervisor conf file which is calling a program in vagrant mounted filesystem. reboot and boom! it works! and the Vagrant solution is config.vm.provision "shell", inline: "service supervisor restart", run: "always"


0

After asking this question on a number of forums, it seems that there may be a number of ways to A: Force booting to console and B: start KDE once at the console. I've however found, that only the following works, for me. update-rc.d kdm disable reboot My system now boots to CLI. I login and service kdm start The KDE login screen (KDM) starts, ...


0

This is an alternative method to the accepted answer but thought I'd share it here anyways. this blog post describes the method, titled: The following signatures couldn’t be verified. With this error message when attempting to do an aptget update: W: GPG error: http://packages.dotdeb.org wheezy Release: The following signatures couldn’t be verified ...


3

No, is not. There two places where you can add repositories. The /etc/apt/sources.list and any file ending in .list in the /etc/apt/sources.list.d/ directory (if you add an entry in the apt.conf file you can add more, but the ones before are the default). So, just check the files in the directory and remove the one you don't need. On the other hand, ...


0

I'm using Debian 7 testing, and for me it worked doing this: Installing the dependencies as said by Dennis: $ sudo apt-get build-dep python-imaging Making a symbolic link as suggested by mrudult: $ sudo ln -s -T /usr/include/freetype2/ /usr/include/freetype Install Pillow as usual: $ pip install Pillow


2

I think you can do this: Package: yourpackage Pin: version 7.* Pin-Priority: 999 This would allow upgrades to yourpackage to versions matching 7.*


-1

try sestatus if permissive or active, you sould have file on it (on /selinux dir). if disabled diectory shouldn't be there. disabling is done bu editing /etc/selinux/config setting SELINUX=disabled and reboot.


3

Don't do this, the directory is owned by libselinux1 and some packages depend on it. You should not remove files or directories provided by the package manager. Proven on my Debian system (7.6) To find out, which package owns a path on your system, use $ dpkg -S /selinux/ libselinux1:amd64: /selinux $ sudo apt-get remove libselinux1 ..... The following ...


1

In your /etc/exports you need to replace the 192.168.1.* with 192.168.1.0/24, you can only use wildcards in hostnames. You also need to create the mountpoints on the client system, you only show the current mountpoint /mnt/green; /mnt/nuci5 and /mnt/nuci5-extra must also exist. Maybe they do, but you filtered those out in that case. Beyond that it should ...


0

I do not know Kali, so my answer is for vanilla Debian systems. I hope it is more or less the same for you. In order to install packages from foreign architectures, you have to enable the new architecture with the command dpkg --add-architecture i386 Then you update the lists of packages: apt-get update And then you should be able to install multiarch ...


0

Try Xvfb, is a X11 server that runs without screen and works with a framebuffer. All X11 programs and utilities work with Xvfb.


0

I found the answer. It is to edit the conf. file in /etc/systemd/logind.conf as described in How to disable auto suspend when I close laptop lid?


1

Uninstall zfs-fuse and install ZFS on Linux: http://zfsonlinux.org, and for Debian specifically: http://zfsonlinux.org/debian.html The instructions from the links above are pretty straight forward, however, a couple of caveats I ran into that aren't mentioned: /etc/hostid file wasn't there which resulted in a failed initramfs image build, the fix is easy: ...


0

You can setup NAT for your VM manually for example like this: Create another bridge: brctl addbr xenbr1 Add it to your VM: bridge=xenbr1 Bring the bridge UP with some network, for example ifconfig xenbr1 192.168.0.1/24 up Setup a DHCP server and configuration for your network subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10 192.168.0.50; ...


0

php5-sqlrelay is only available in unstable for m68k in the debports repos: https://packages.debian.org/search?keywords=php5-sqlrelay If you have a suitable processor (m68k), then read this for details on how to install a package from testing: How to pull dependencies for package/testing from testing



Top 50 recent answers are included