New answers tagged

0

From the security point of view, it is not really a good idea to setup web pages with the same user of Apache. The Apache user should be able to read the web pages, but not write to them. As such, in the standard configuration, it is normal for the web structures to be readable by all, and when there is a need to write, normally to be writable by www-data, ...


0

You could load a LADSPA filter to your ALSA setup or PulseAudio, it sounds like the fastLookaheadLimiter fits the description.


0

The Linux distro the author of your document used refers to the network interface of the Raspberry Pi as usb0. The Raspberry Pi uses a USB based Ethernet adapter, but the naming convention is up to the distro developers and therefore can change between various flavours of Linux. The distro on my Pi (Raspbian) has this as eth0. Try running ip link to see ...


1

Try playing with this command: dconf-editor Inside these schemas: org.gnome.settings-daemon.peripherals.mouse org.gnome.settings-daemon.peripherals.touchpad With these settings: motion-acceleration motion-threshold Their values could be from 0 - 1.79e308.


1

For the last question (command line): On command line the umount command waits until the files are stored and the filesystem is really unmounted. Personally I prefer to use the command eject on USB devices: this command will unmount and then power off the USB device (so the led is off and I know for sure I can remove the device). Both commands will return ...


0

You could check in terminal using ls /dev/sd*. If the device file for your USB drive still exists, then probably it is still writing some data.


1

If I understand you correctly, you want to use the free space on sdd2 for creating another Partition sdd3. To do that, you first need to resize the physical volume (if you haven't done that already) using pvresize. First have a look at how big your physical volume is using pvdisplay /dev/sdd2. If it already has the correct size, skip to the next step. ...


0

It is the command-line interface of GRUB. If you choose the command-line menu option, or if the configuration file was not found, then GRUB drops to the command-line interface. From GRUB Manual: The command-line interface provides a prompt and after it an editable text area much like a command-line in Unix or DOS. Each command is immediately executed ...


1

It is possible to do so, and I use it to change the default of some programs (usually in form of my default parameters). For scripts I write I prefer to put the configuration in a separate file ~/.my_program_x.conf and do a . ~/.my_program_x.conf. In general (AFAIK) scripts prefer to have a configuration file for such cases. Note: I think you should ...


2

In addition to vonbrand's answer, let's not forget a major contribution to the GNU/Linux OS is that a lot of the GNU stuff was already there, already functional as a whole ecosystem and freely available under an open source license when the Linux (kernel) project started. One should not forget either what the original GNU project goal was, i.e. building a ...


0

Getting the message "buffer I/O error" typically indicates a hardware issue with your disk, but it could just be that the filesystem is asking the system to do things that don't make sense as a result of its corrupted state. Your best bet is to run fsck on the affected filesystem, and then look in /lost+found for recovered inodes.


0

If you really want to do this despite all the warnings in the other answers, you can try opening up /etc/apt/sources.list and all text files in /etc/apt/sources.list.d/ with root rights and replace every mention of LANGUAGECODE.archive.ubuntu.com with old-releases.ubuntu.com. Since you cannot find anything in sources.list, there should be something in ...


0

I backed up all my data and I reinstalled the distro, this time with the default graphical environment. I think it has all been a misconfiguration, so I'm closing this question. I strongly recommend to follow the 'default' distro installation tutorial if you are a beginner, and once you have your distro ready to go, tweak whatever you like (or use a VM). But ...


1

Is there any reason why you're still using Saucy? This version has been end of life since July 2014. If you still want to install packages from that release, you need to point your package sources to old-releases.ubuntu.com in sources.list. However, I strongly recommend upgrading to an up-to-date release of Ubuntu. The current LTS version is 14.04 Trusty, ...


1

Ubuntu Saucy Salamander (13.10) went EOL in July 2014 as show here. You are getting the error because the files cannot be found (Error 404 on the end of your apt-get update output means file not found). If you look at the repository at http://archive.ubuntu.com/ubuntu/dists/ you'll notice that saucy is not listed there - hence the 404 error.


1

You can use sar command. root@virt01:~# sar 1 1 Linux 3.19.0-42-generic (virt01.ubuntu.com) 13/02/16 _x86_64_ (1 CPU) 12:19:55 CPU %user %nice %system %iowait %steal %idle 12:19:56 all 0.00 0.00 0.00 0.00 0.00 100.00 Average: all 0.00 0.00 0.00 0.00 ...


2

You need to build or install a uClibc toolchain and compile/link your programs with that. You do not compile them with the standard gcc/make/.... Do I really need to build a uClibc toolchain?


2

My guess is that you don't have the correct dynamic linker on the Busybox system. On your Arch system do this: ldd ./simplestprogram I imagine ldd will give you output similar to this: linux-vdso.so.1 => (0x00007fff9b34f000) libc.so.6 => /lib64/libc.so.6 (0x0000003b19e00000 /lib64/ld-linux-x86-64.so.2 (0x0000003b19a00000) That last line, ...


0

I believe it was a permissions issue on a hardened box. I was extracting some configuration files via tar and overwrote the permissions on some directories hence creating the problem.


0

When you run screen, it sends (among other things) the strings defined in the terminal description for starting/stopping full-screen operation. These are ti and te (in termcap), smcup and rmcup (in terminfo). When you start screen, or attach to a session, it sends ti (smcup). When you stop screen, or detail from a session, it sends te (rmcup). Depending ...


0

#from outside mv sample_dir1/sample_dir/ . mv sample_dir1/ sample_dir/ would make a little bit of sense.


0

You can use hostnamectl hostnamectl The output: Static hostname: debian Icon name: computer Chassis: Laptop Machine ID: 4c983dae19f6403ca2c555c386cdeb14 Boot ID: 3b399eb976d04569a8514a1dczdv4d81 Operating System: Debian GNU/Linux 8 (jessie) Kernel: Linux 3.16.0-4-amd64 Architecture: x86-64


0

This script may help. (please remove the echo to actually mv files): #!/bin/bash shopt -s nullglob month=(Jan Feb Mar May Apr Jun Jul Aug Sep Oct Nov Dec) for y in 2016; do for m in {01..12}; do fn="$y-$m" dn="${month[10#$m-1]}_$y" [[ ! -d $dn ]] && mkdir -p "$dn" for file in ./"$fn"*.wav; do echo ...


0

### capitalization is important. Space separated. ### Null is a month 0 space filler and has to be there for ease of use later. MONTHS=(Null Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) cd /your/ftp/dir ### pretty obvious I think for file in *.wav ### we are going to loop for .wav files do ...


0

To truly report all attributes you can use the argument -dm-, which represents the arguments -d and -m -. For example I launched Chromium, I went to https://bugsfiles.kde.org/attachment.cgi?id=86198, that action started to download a file and I named it "my_downloaded_file". Then I executed getfattr -m- my_downloaded_file and it showed: # file: ...


0

Change the mode to be executable: cd path_to_photoshop_cs2.exe chmod +x your_photoshop_cs2.exe Right click on the photoshop.exe file and select Open with > WINE


0

If lsb_release -a is not working, you need to install the package: sudo apt-get install lsb-release From https://packages.debian.org/jessie/lsb-release Linux Standard Base version reporting utility The lsb-release command is a simple tool to help identify the Linux distribution being used and its compliance with the Linux Standard Base. LSB ...


0

cat /etc/lsb-release cat /etc/os-release if these fail ls -l /etc/*release* and look and see the contents of those files


1

A while loop with suitable input can do the job, assuming no IFS-thwarting characters in the directory listings. paste <(ls /var) <(ls /usr) | while read e u; do echo $e $u; done


0

Not too elegant but this should do the trick: #! /bin/bash export LC_ALL=C # makes sure we're using C locale even in subshells day_10_minutes_ago=$(date -d '-10min' +%a) # stores which weekday it was 10 minutes ago day_now=$(date -d +%a) # stores which weekday it is now if [ $day_10_minutes_ago = "Mon" ]; then # if ten minutes ago it was Monday if [ ...


3

If you have faketime and your date is dynamically linked: faketime -f -10m date -d 'last monday' '+%F %T' With ksh93 (only builtin commands): printf '%(%F %T)T\n' "$(printf '%(%Y.%m.%d)T' '10 minutes ago')-0 last monday" Here, if it was last Sunday instead of last Monday, you could do: date -d "$(date -d '10 minutes ago' +"%F -%u day")" Or if it was ...


0

Here is a small script that solves the problem where 10 minutes ago is a previous day. I'm sure it could be done more elegantly though: #!/bin/bash DAY=`date --date='-10 min' +"%a"` SEC=`date --date='-10 min' +"%s"` if [[ "$DAY" == "Mon" ]]; then DDIF="7" elif [[ "$DAY" == "Tue" ]]; then DDIF="1" elif [[ "$DAY" == "Wed" ]]; then DDIF="2" elif ...


0

When installing new packages, check carefully what packages will be uninstalled. Where did you find the updated Intel graphic drivers? Possibly the package is not made for Debian, so it messed the libraries, and forced uninstall of important components. If the package is not from Debian, I suggest you to remove it, and try to solve the problem with Debian ...


0

Using Synaptic package manager search kde-plasma-desktop and install it reboot


0

You could do it in 2 date operations. Here's a quick bash shell script: TIME_TEN_MINUTES_AGO=`date -d '-10 min' +%T` LAST_MON=`date -d 'last-monday' +%Y-%m-%d` echo "NOW: " `date "+%Y-%m-%d %T"` echo "Last Mon: " $LAST_MON $TIME_TEN_MINUTES_AGO This prints: NOW: 2016-02-12 07:54:27 Last Mon: 2016-02-08 07:44:27


0

You can disable a device node by adding: ps7_ethernet_0: ps7-ethernet@e000b000 { ... status = "disabled"; }; Depending on your device tree include structure you should add this at board specification level. Otherwise there might be a chance that status = "disabled"; is overwritten by a status = "okay"; somewhere.


0

1) A multi-threaded process has a single line in ps aux output, when each thread is a task. Compare ps -auxH | wc -l


3

In Linux, /dev/random gives high quality random bits. They are derived from sources that are not predictable and not repeatable, external to the machine. In contrast, /dev/urandom uses the same random data as /dev/random (if available), if there is none, it uses a pseudo-random number generator, which is deterministic. For most purposes, it is unpredictable ...


4

The most important parts are the GCC compiler, glibc C library, the coreutils and binutils basic Unix tools, and probably the bash shell and the Gnome desktop environment (if you use those). Just source line count doesn't take the relative importance into account. If you take e.g. Debian's or Fedora's full software selection, most people don't even install ...


0

The problem is that you're missing one parameter to execlp; you need to specify the command to execute, and then all its arguments, including its first argument which is the command's name: execlp(parsed[0], parsed[0], parsed[1], parsed[2], parsed[3], parsed[4], (char*) NULL); The first parsed[0] is taken as execlp's path parameter, and the second one is ...


0

I was able to find and install storcli package in my Server and now I am able to find the drive failure. Below is the step to follow [root@GURUAID-WEBII tmp]# rpm -ivh storcli-1.03.11-1.noarch.rpm Preparing... ########################################### [100%] package storcli-1.03.11-1.noarch is installed [root@GURUAID-WEBII ...


0

It is possible. And it is easy if you have apt and dpkg. In my case, I did not have both and had to install them. Skip to "Installing CUDA" if you already have apt. You need to install apt install the CUDA binaries. You need to do the next two steps to make sure that your image has apt: Make sure your image has IMAGE_FEATURES += "package-management" ...


0

You can see what modules are already loaded into the kernel by running lsmod Usually, all Linux kernel modules (drivers) are stored in the module directory located that /lib/modules/$(uname -r) directory. To see current modules, type: ls /lib/modules/$(uname -r) Use the following command to list all drivers for various devices: ls /lib/modules/$(uname ...


0

If the "partitions" are really managed within lvm, this is no problem. A single logical volume can span multiple physical volumes. However, you lose control over which disk gets which new chunk of data, so you might lose performance for new parts of files that are otherwise stored on SSD. I'm seconding Steweryn's dm-cache suggestion.


0

If you just want to hide the value, you may put it in a variable in another script that you'll source: . /path/to/other_script echo whenever sqlerror exit | sqlplus "$HIDDEN" @"TABLE1.sql" where other_script contains: HIDDEN='Login/Passwd@SERVER' but other_script will have to be readable...


3

You could have a partition on two disks if you used Brtfs file system or LVM, but creating a partition on two disks will be similar in performance to moving /home to a spinning HDD. In your case you should probably take a look at dm-cache


1

Resource limits are generally controlled through ulimit (user-based) or sysctl (system-based). For example, the kernel.shmmax parameter, set by sysctl defines the maximum size in bytes of a single shared memory segment that a Linux process can allocate in its virtual address space. ulimit is used to set the limits of normal user processes. These values ...


1

From man bashbuiltins: ulimit [-HSTabcdefilmnpqrstuvx [limit]] Provides control over the resources available to the shell and to processes started by it, on systems that allow such control. Use ulimit -a to show current limits.


0

An additional bash solution: It will handle unmatched pairs of braces {. Won't accept a closing brace until one or more opening braces appear. Will reset the count of braces to 0 at the end of the line. Will accept a comma as valid after more closing braces than opening braces. Will remove one space in front of solution. Will quote the resulting word. ...


0

This problem was fixed on the Red Hat Enterprise Linux 6.6 release. The reason was because Symantec Endpoint Security (my company-issued antivirus) didn't seem to play well with Red Hat 6.5's suspension/hibernation features. The next distro release fixed this issue and after upgrading I haven't had any spontaneous wake-ups.



Top 50 recent answers are included