Tag Info

New answers tagged

2

You are downloading a script using wget and running it by piping the result to bash: the script is telling you to add -r to the invocation of the script, not to wget. Probably the easiest solution is to take the script's advice, i.e. run it as a normal user; either by opening a new PuTTY session as a regular user, or using su su - someuser wget -q -O - ...


0

I suspect the underlying issue is nothing to do with your tty, but rather that is a consequence of the far more important error message further down, PAM Failure, aborting: Critical error - immediate abort. This article from the Debian Help site may help. (TL;DR? CR/LF on the end of lines in PAM configuration files is bad.) But without knowing what you've ...


0

Finally I have found 2 solutions. 1) Leave the ashift on default value, even if the blogs/docs say otherwise. 2) Increase the volblocksize to 64K with raidz3.


3

Have a look at the Filesystem Hierachy Standard which is also the base for Debian's file system layout. .csv and shell scripts likely go into /usr/share/<yourprogramname> if they come out of the package or /var/lib/<yourprogramname> if they're data which changes over time. Python files are a rather special case, see Debian's Python Policy for ...


0

Create a file, let's call it /etc/apt/apt.conf.d/01stable, with the following content: APT::Default-Release "stable"; Now create a file called /etc/apt/preferences with the following content: Package: firefox* Pin: release n=stable Pin-Priority: -10 Package: firefox* Pin: release n=debian Pin-Priority: 900


0

Solved, I opened the device and found the hard disk disconnected from the socket


0

Is ls --color=auto what you are looking for? In case it is you should add aliases in your .bashrc so that when your shell starts the alias is created and whenever you use ls the output comes with colors. You can customize the colors giving the right values to the variable LS_COLORS. This are my variable's values (I think they are the defaults): ...


1

dpkg --print-architecture will output the primary architecture of the machine it's run on. This will be armhf on a machine running 32-bit ARM Debian or Ubuntu (or a derivative), arm64 on a machine running 64-bit ARM. Note that the running architecture may be different from the hardware architecture or even the kernel architecture. It's possible to run ...


1

Squeeze doesn't know (much) about multiarch, but the source package you're building uses multiarch paths (usr/lib/*/lib*.a, where the first * ends up being replaced by the multiarch triplet for the architecture you're building on). To fix the dh_install step you need to edit the appropriate <package>.install file in debian and change the paths to ...


1

The keyring is stored in the debian-keyring package, so to install the Jessie keyring you can do wget http://ftp.de.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2014.12.10_all.deb sudo dpkg -i debian-keyring_2014.12.10_all.deb Alternatively, to continue your backport without upgrading your keyring, you can simply extract the files dget ...


0

Use dotdeb. It's like 1 minute work. Follow https://www.dotdeb.org/instructions/ Do only points 1,3,4 (omit 2) and then sudo apt-get install php5-readline


0

Here is a solution inspired by soubunmei's answer: #!/bin/sh ActiveWindowManagerPID() { local windowManager="$1" local windowManagerPIDs="$(pidof "$windowManager")" local displayNumber="$(echo $DISPLAY \ | awk 'BEGIN { FS = "[:.]" } { print $2 }')" ps e -p "$windowManagerPIDs" \ | awk -v n="$displayNumber" \ ...


1

Thanks for your help but I was creating the issue myself. Although it's a stupid thing, I want to share it: I have an ownCloud installation which is installed on the SD card as well. It is necessary to run a cronjob which is writing a lock file to the disk every 15 minutes which was waking my disk up.


0

If you have identified the tty where you lauched the blackbox from, ps -t tty1 will list the processes launched from that terminal (assuming tty1 is the one from where you launched the openbox you want to kill), then you can identify and kill the one you want.


0

I am pretty sure Debian installs and runs smartd by default to keep an eye on your disks' SMART status. The regularity with which the disk is spinning up certainly points to something like that. First, run /etc/init.d/smartd status to check whether smartd is running. If it is, that might be it. If not, it's something else, and you can disregard this answer. ...


1

Version 1.11.7-2 from testing works for me in a production environment. You don't need to upgrade your entire system from stable, just add a testing repository: deb http://ftp.uk.debian.org/debian/ testing main contrib non-free deb http://ftp.uk.debian.org/debian/ testing-updates main contrib non-free You may need to tell apt that you prefer the Stable ...


0

If you have GNOME installed, you probably use gdm as display manager. Actually it should have remembered your default session, but you can do it manually by setting the file ~/.dmrc: [Desktop] Session=icewm Language=en_US.UTF-8 If you don't use display managers, add the following line to ~/.xinitrc: exec icewm-session


1

ps e lists processes with their commandline along with ( initial ? ) environment variables . filter processes matching either a -display :0 commandline or a DISPLAY=:0 environment . i believe this find the wm in question whether started manually or by some session script . then we can simply kill it . i hear there are different ps implementations , the ...


0

I wrote a script to solve this. Some things are in Italian but i think you can easily understan how the scripts works. Anyway you can easily translate everything. The script basically checks if the blackberry is connected to the network. If yes, it checks if a dummy file exists, if it does, it means that another istance of the script is already running so ...


1

There are scripts here: https://github.com/dotzero/vagrant-debian-wheezy-64 to take a netinst iso and remaster it with preseed options. This could be a good starting point. There is a latecmd option in the preseed that will let you run a command just before the installation finishes. If the latecmd can't do everything in the chroot environment, you can ...


0

The -1 for maximum size of xfs partition is the problem, although it really should not be. There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions. ` 5. LIMITATIONS Due to limitation of the algorithms in partman-auto, there must be at least one partition ...


0

You could possibly just set the ip assigned to Kali as static in your router. Say your IPv4 was 192.168.0.2 then you could just assign it as static in your router and provided you're using an installed version of Kali not a live cd then it should always end up with the same address.


1

Debian has a package for you to take care of dumping, compressing and rotating MySQL data. You can install it with the following command: $ sudo apt-get install automysqlbackup After this daily, weekly and monthly dumps will be placed in /var/lib/automysqlbackup


1

However, doesn't using backports destabilize stable? Not if you are careful and selective. I use backports all the time (I run Debian stable) and have never had a problem. The key is to avoid upgrading or otherwise changing core packages. This includes the basic libraries that are widely used in the system, including important C and C++ libraries (e.g. ...


0

A stable release has no serious bugs in it, in a nutshell. Before a release, bugs that are deemed sufficiently serious are marked release-critical, which means they must be fixed before a release and usually are. This does not mean there are no bugs. I have personally not encountered any bugs I would consider serious in a Debian release. After stable is ...


2

Read the fine manual: man 5 crontab : There you will see that "%" has a special meaning for cron. That is clobbering up your intended command. apart from this this is a very bad way to start a mySQL-backup: Your root-DB-password will appear in the process list viewable for every local user or every user with snmp read access You should not start a ...


1

Debian stable is, well, stable. Nothing breaks. Most of the changes are security fixes. Testing and unstable may break. Packages in testing have already spent some time in unstable, so in general, testing is a slightly better choice if you are trying to avoid major breakage. Unstable is more likely to break. It doesn't break often, but when it does, you ...


0

I solved the issue updating libc with the packages of sid (experimental branch). Here's the link to the thread that explain how to update Debian Wheezy to glib2.15 http://stackoverflow.com/questions/10863613/how-to-upgrade-glibc-from-version-2-13-to-2-15-on-debian I'm running Light Table 0.7.2 on debian wheezy with no problems now.


0

Yes, rsync will do. But renames will result in a duplication if you do not take additional steps. These could be: Make a list of transferred files, then check whether there is an existing file of the same size and content... Part two: You should ping-check first before starting rsync. Or just use a small connection-timeout value with rsync. Perhaps this ...


0

You can print code along with version number of debian: root@debian:/home/mohsen# grep "VERSION=" /etc/os-release |awk -F= {' print $2'}|sed s/\"//g 8 (jessie) OR you can bare your code name from number and pranthese: grep "VERSION=" /etc/os-release |awk -F= {' print $2'}|sed s/\"//g |sed s/[0-9]//g | sed s/\)$//g |sed s/\(//g jessie


4

You can use /etc/os-release: $ . /etc/os-release $ printf '%s\n' "$VERSION" 7 (wheezy)


0

I had this problem, and it was caused by the wrong UUID for the root FS being set in /etc/fstab. I guess some upgrade auto-detected it and got it wrong. Remount / rw, using blkid to get the right UUID and replace in /etc/fstab fixed it for me.


1

This question has already been answered: How to force fsck at every boot - all (relevant) filesystems? No one pointed out on there that the real problem is people yanking the cable. I seriously think the focus on BOTH questions is wrong; You need to fix your user problem, not the server filesystem problem. Honestly, given how crucial this filesystem is ...


2

You don't get both contents appended. You will get a weird output: $ ls testasdasd qtsingleapp-homecu-bcbf-3e8 >new 2>new $ cat new qtsingleapp-homecu-bcbf-3e8 : No such file or directory If you have both contents, you should see: $ ls testasdasd qtsingleapp-homecu-bcbf-3e8 >new 2>&1 $ cat new ls: cannot access testasdasd: No such file or ...


5

TL;DR bash opens and truncates all involved files before anything is written to them. stdout and stderr are both sent to new because bash has already truncated the file (twice) when ls starts printing. This is how bash prepares/handles I/O redirection. When you ask for a command to be redirected (>) to a file, bash basically opens that file, creating it ...


0

Restart on closing the lid is not the default behavior of any distro I know of. That said, this is likely a more serious issue like a graphics card driver problem. Try going into your bios setup screen (usually F2 on boot) and disabling switchable graphics, crossfire, or nvidia optimus. If that works, then try installing the appropriate drivers for your ...


2

Try running this script heartbeat.sh that will reset X idle time each 55sec. #!/bin/bash while sleep 55 do #xscreensaver-command -deactivate #xdg-screensaver reset xset s reset done


3

DPMS can be darn resistant! Try this command: xset dpms 0 0 0 && xset s noblank && xset s off If it works, add it to whatever autostart file KDE uses. By the way, VLC has the option Preferences >> Video >> Disable screensaver. If that option is checked, the screen won't blank while VLC plays a video but DPMS will be turned on ...


0

the dhcp client at /etc/dhcp/dhcp/dhclient.conf was sending gethostname(); as the hostname to the dhcp server. Replaced gethostname() with the hardcoded name of the device and it has fixed the issue.


4

It should be fine to delete files in /usr/share/doc on Debian-based systems. The Debian policy explicitly specifies in section 12.3: Packages must not require the existence of any files in /usr/share/doc/ in order to function. [...] The system administrator should be able to delete files in /usr/share/doc/ without causing any programs to break. ...


1

Use here documents. tftp 10.1.0.203 << fin get /test/${ThisHost}.ica quit fin That should get /test/${ThisHost}.ica from your tftp server.


0

Interfering with the Debian package manager by deleting files that are under its control is always a dangerous thing to do. Hence the inclusion of this paragraph in the documentation of localepurge: Please note, that this tool is a hack which is not integrated with Debian's package management system and therefore is not for the faint of heart. This ...


4

The version is part of the package name in this case (blah-blah-1.49 vs blah-blah). Therefore the package is seen as a different one.


2

I am posting an answer, as I have somewhat managed to resolve the issue. I say somewhat because I still have problems. Wheezy appears to have a need to use a screensaver. I disabled all options I could find, even patched xscreensaver, but to no avail. The above fixes I tried in my question, sometimes generate issues when I log in, some times they do not! ...


1

I just managed to configure exactly this thanks to the instructions in the ArchLinux wiki : Set the one sink - HDMI - in pavucontrol/Configuration, and the other - analog output - you specify in default.pa : load-module module-alsa-sink device=hw:0,0 load-module module-combine-sink sink_name=combined set-default-sink combined Maybe you were missing the ...


0

It's an image for burning on to a DVD-R (or USB flash), not CD-R. To quote from the Debian Live site's "about the release images" page: Each image is much smaller than the full set of CD/DVD images, but larger than the network install media. If you are installing from optical media, the standard and rescue images will fit on a CD, whereas the others ...


0

Is this the page you are looking for http://cdimage.debian.org/debian-cd/7.8.0/amd64/iso-cd/ What you have there is a DVD image. There are also minimum CD images, for network installs. You can also download by torrent etc, not just http. This is easier on the servers, faster, and more reliable.


0

sudo apt-get install make But, to answer your question more thoughtfully: sudo apt-get install python-pip No compiling needed! And one thing to check: Is Debian checking for a CD source? Open your /etc/apt/sources.list and make sure the lines containing "cd-rom" have a # in front of them. Then do sudo apt-get update. That should set everything right. ...


0

My current solution, for the record: The only way I was able to get the display going on this machine was: blacklist nouveau add the oldstable repositories to sources.list apt-get remove the entire Xorg subsystem (and gdm) apt-get -t oldstable install the previous revision's Xorg subsystem (including the nv driver) and xfce4 (I opted to go with xfce4 ...


1

All these undefined symbols (LIBSSH2_ERROR_EAGAIN, ...) belong to libssh2. You need to install that library in order to compile VLC. For some reason, the ./configure script did not warn you about it... You can download libssh2 from its website or, preferably, use your package manager to do so. For example, with apt-get... $ sudo apt-get install libssh2-1 ...



Top 50 recent answers are included