Tagged Questions

Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

1
vote
0answers
55 views

CrunchBang vs LXLE or other lightweight distro [closed]

I am looking for a lightweight distro for my laptop. My laptop is not old, it is quite powerful (core i7 ) but I need more battery life because with Mint/Ubuntu it drains fast. So I need advice what ...
0
votes
2answers
60 views

Command Line only UNIX/Linux OS [closed]

I want a command line only UNIX/Linux OS. I want the download of the OS to be below 80MB. I want minimum software.
3
votes
1answer
43 views

Thread process in linux

I'm wondering about the "punishment" that occurs when a new thread is created. From my understanding of clone(2), NPTL (New POSIX Thread Library), CFS (Completely Fair Scheduler), when a new thread ...
0
votes
1answer
44 views

unsquashfs fails

Debian 7.0, I extracted the firmware.bin image using binwalk. The extracted content is squashfs-root folder containing subdirectories, and a separate file.squashfs file. I tried unsquashfs this ...
0
votes
0answers
6 views

Get start and end of process segments C/C++ [migrated]

I need to get the start and end addresses of the following process segments: code, data, stack, environment. I understand how it is located in memory, but don't know how to get it using API calls or ...
1
vote
3answers
67 views

How to align a table of display nicely

I am trying to create a script that act as a ps command with it's own properties that I want to display. Say this is how processes would look like in ps command: sas 24431 1 0 Oct10 ? ...
0
votes
0answers
34 views

GDB up arrow doesn't work

I searched a lot about similar problems but found nothing. When running gdb I couldn't use up arrow for walking through previous commands. Up and down arrows are just ignored. I have started to ...
0
votes
0answers
29 views

boot fails with “cryptsetup: lvm fs found but no lvm configured” [dual boot(2xlinux LVM, dm-crypt+luks)]

I have a dual-boot(xubuntu/#!) setup LVM with dm-crypt+luks as follows /dev/sda1 = /boot (xubuntu) /dev/sda2 = /boot (#!) /dev/sda3 = encrypted LVM /dev/mapper/volgroup-xroot = / (xubuntu) ...
0
votes
0answers
19 views

I'm trying to create a public TLD using BIND

I'm using these two guides: jackal777.wordpress.com/2013/11/19/custom-tld-for-local-network/ timg.ws/2008/07/31/how-to-run-your-own-top-level-domain/ When I run dig sokolovskaya.ssu, it looks ...
1
vote
2answers
43 views

Increasing performance of clear text file reads

In our bioinformatics application we have large files (up to 900MB, typically 100MB). These files contain a clear text representation of a genome, and are essentially a 1 line file with a sequence of ...
4
votes
1answer
35 views

Softlink in rc0.d is working on poweron rather than shutdown

I want to run a script on poweroff in Ubuntu. so I made a script, placed it in init.d & made a softlink in rc0.d with name S36xyz. my script is working perfectly when I run it in terminal. so ...
0
votes
0answers
32 views

Routing incoming source IP traffic to a loopback IP issue

I'm wanting to accomplish the following: I have a BIND DNS server setup where it is listening on ANY address and also listening in a BIND config ACL on 127.0.1.1. If there is another way where you ...
0
votes
0answers
19 views

auto installing dropbox daemon(dropboxd) with profile signed in automatically script issue

I am trying to install dropbox automatically in my server auto-install script so when I spawn a new VPS instance I'm able to have dropbox installed and have the credentials already inputed via the ...
0
votes
1answer
37 views

IPtables don't block IP

I'm running Postfix SMTP server. Some hosts trying to connect with wrong passwords. warning: s15393678.onlinehome-server.com[74.208.17.126]: SASL LOGIN authentication failed: I'm adding iptables ...
0
votes
0answers
13 views

Dovecot/Postfix and mail vmail directory

I've setup a Postfix/Dovecot mail server. I'm using Postfixadmin to set up a SQL users database. My question is If I ever migrate to another server and I don't have the /var/vmail directory ...
1
vote
1answer
43 views

Run Debian XFCE without a monitor

I want to run a program via ssh on a debian xfce pc, the program generates a file, my problem is that this program needs a screen to open, it will NOT work in terminal mode. I want xfce to boot ...
0
votes
0answers
29 views

Ext3 file system became read-only and server reboots spontaneoulsy

We noticed ext3 file system in our CentOS 4.9 server became read-only. We got the following error in dmesg: EXT3-fs: INFO: recovery required on readonly filesystem. EXT3-fs: write access will ...
1
vote
1answer
66 views

How to launch multiple instances of a program in parallel using parallel?

I would like to execute a command: curl example.com multiple times in parallel using GNU parallel. I tried: parallel -j 3 curl example.com but it doesn't work.
0
votes
1answer
30 views

How to find file/device given the resource ID on Linux?

On a gentoo Linux system I am printing the value of a file descriptor from within a PHP script yielding the following output: Resource id #1234 How to find the corresponding file/device given this ...
0
votes
0answers
49 views

How to fork multiple processes from a same parent?

I am trying to create multiple processes from a same parent, but it always ended up with more processes than expected. I couldn't figure out how to do it and need some help here. I found a piece of ...
0
votes
0answers
37 views

bully can't work on mon0 on Ubuntu 14.04 LTS

I'm running bully on Ubuntu 14.04 LTS. I got this output: [!] Bully v1.0-22 - WPS vulnerability assessment utility [!] ioctl(SIOCGIWFREQ) on 'mon0' failed with '-1221085440' Segmentation fault (core ...
0
votes
2answers
35 views

badblocks utility keeps reporting “invalid last block”

I'm trying to run badblocks on a drive with a single partition. The drive contains a FreeBSD file system on it. I boot up using a Linux live USB drive. The drive is unmounted. The output of fdisk ...
3
votes
0answers
24 views

Disable buffering in a VM configuration

I am executing some benchmark using a DBMS and virtual machines. And I am using this command free && sync && echo 3 > /proc/sys/vm/drop_caches && free on each Guest, and ...
1
vote
1answer
50 views

How to expand an iSCSI lun with targetcli on CentOS7?

I have a CentOS 7 machine with iSCSI configured. see ls output from targetcli below. I want to add disk02 to lun0 so that to the iSCSI client can see a total 869.16GB instead of 392.2GB Question: Is ...
1
vote
1answer
15 views

How to configure bind9 caching period

I have configured bind9 to act as a caching server and is working properly. However I am trying to configure the retention period for the cache. I couldn't find any information regarding the caching ...
2
votes
3answers
49 views

How to get the build date of a Debian system?

What I have here is a powerpc device with pretty ancient Debian installed on it. It's identifiable as Lenny derivative: /etc/issue mentions Debian GNU/Linux 5.0. There are some vendor-specific ...
1
vote
0answers
34 views

Can Linux be configured to wait for USB storage to be reattached instead of returning I/O error

If a usb_storage device is physically detached from an Ubuntu machine while it is still mounted, any attempt to access the file system will produce an I/O error. Is there some way to configure Linux ...
0
votes
0answers
8 views

Bind address forwarding in Lighty

I have a question not sure is it possible or not, if possible then how ? I have a Lighty running on a Linux system and is bind to localhost only on port 80. I have another web site written in Node ...
1
vote
0answers
11 views

Kubuntu terminal setting depending on display

I am running Kubuntu on dual screen configuration. Both displays have the same resolutions (FullHD) but the trick is that one is significantly smaller than the other (24 inch monitor vs. 15 inch ...
0
votes
3answers
41 views

Linux Distro name API to get name of linux distro in a driver code?

I am writing a common code in a driver to get the distros name and host name. host name i am taking from struct utsname{nodename[]}, but how do I get the distro name?
1
vote
0answers
8 views

Using shared memory through tmpfs and NUMA on x86_64/Linux

Here's what I'd like to do: put a file on tmpfs but ensure that all of it (all pages of it) ends up on the same NUMA node. First, I thought this would be trivial: I'd just mmap() a tmpfs file with ...
1
vote
0answers
36 views

Using autofs to mount a NFS share

I am trying to setup a RHEL 7 machine with an autofs NFS mount (the NFS mount is a Windows 2012 R2 server running Services for NFS). Here are the contents of /etc/auto.master: /nfs /etc/auto.nfs ...
2
votes
1answer
54 views

How to change the kernel max PID number? [duplicate]

The default PID max number is 32768. To get this information type: cat /proc/sys/kernel/pid_max 32768 or sysctl kernel.pid_max kernel.pid_max = 32768 Now, I want to change this number... but I ...
0
votes
0answers
19 views

Files and Directories Dissappearing from Software Raid on Power Failure

I have a home samba file "server" (a raspberry pi) with two hard drives in a software raid 1, which have proven less reliable than any of my non-raid disks. I know there is a chance for data ...
1
vote
0answers
22 views

Granting access permission to normal user to a logical volume of a volume group [duplicate]

When I need to run a program with direct disk access, like read/write from /dev/sdb, I simply add the user to 'disk' group. In this way we don't need to disclose the root account the the user. However ...
2
votes
1answer
49 views

Hard Drive health check

In a previous thread the answer # smartctl -a /dev/sda looks good. The problem by my side is the highly verbose output. Is possible to obtain something more human understadable, something like "hard ...
1
vote
2answers
24 views

Spanning RAID over SSD and Mechanical HD

Currently I have my root (/) directory on my ssd, and my home directory on my mechanical drive. Wanting to utilize more of the ssd and hopefully get a speed benefit, I was considering spanning across ...
2
votes
0answers
44 views

Understanding Broadcom setup and kernel files

I often install Linux distros form live usb/CDs. For that I would like to be able to setup my wireless without any internet connexion. I have a Broadcom chipset : $ lspci -k 04:00.0 Network ...
2
votes
0answers
19 views

Maildir permissions for courier

I'm having difficulty with maildir permissions for Courier, an IMAP server I've installed on a box running Debian Wheezy. The mail directory I use is /var/mail/users, with the following permissions: ...
2
votes
1answer
66 views

What are the semantics of getting a EADDRINUSE when no listening socket is bound, but connections are open

Consider a parent process which completes a socket/bind/accept, and will fork children with that socket open for them to communicate with, while the parent continues accepting connections. That parent ...
0
votes
2answers
118 views

Where / How to install CentOS 7 for 32 bit system?

I have windows 7 with 32 bit system, and previously I used CentOS-6.5-i386-minimal to run centos on my virtual box, but now I would like to run CentOS 7 and it seems (if I am not mistaken) that there ...
0
votes
3answers
56 views

Run an SQL script to create a Database via Linux Terminal

I am logging into my web server remotely using SSH and I'm wondering if there is a way that I can execute an sql script I have residing in a directory on that server in order to create a new database, ...
0
votes
1answer
27 views

sMail server cannot get connect by Linux frequently

I have a mail server A build by iredmail on Centos6.5 system. The mail server have a public ip aaa. There are about 40~50 mail clients which operating system is windows in local network, they all ...
12
votes
1answer
362 views

Change password on a LUKS filesystem without knowing the password

I have a Debian Wheezy server that's been running for a while with an encrypted drive. The password for the encrypted drive (/dev/sda5) was lost when my encrypted password file was corrupted. I'd ...
0
votes
0answers
12 views

File transfer between SSD and RAID array uber-slow

It's really simple: this server has an SSD for the main drive, and a RAID array (mdadm) for storage. Intermittently, it has a problem writing to the array: the write speeds slow down to the point ...
1
vote
1answer
27 views

Is there an /etc/network/interfaces option like wireless-ap except for a wpa-ssid/wpa-psk connection?

In /etc/network/interfaces (on Debian Linux 7.6 with wpa_supplicant), wireless-ap forces a specific access point for wireless-essid connections. Is there an equivalent option for wpa-ssid/wpa-psk ...
0
votes
0answers
24 views

Dual boot Linux Mint and Unix (FreeBSD)?

Currently i am using Linux mint 17 currently i am using FreeBSD on Virtual machine but now i want to dual boot Freebsd and Linux How can i dual boot linux mint 17 and freeBSD 10 ?
0
votes
0answers
22 views

How can I mount the Logitech C270 in the zynq-7000 (with Linaro linux)?

I am doing camera control programming for a university project using zynq 7000. I want to mount the camera module that's for the Logitech C270 (like this ...
2
votes
0answers
38 views

Some commands fail when active display/vt is different from where they are running, How to fix/workaround that?

These applets are running on X at DISPLAY=:0 (fgconsole 7). NetworkApplet Related to nm-applet/NetworkManager run this command sleep 10;nmcli nm enable false;beep (you must be connected to the ...
3
votes
0answers
61 views

Replicate a complex partition structure with LUKS and LVM volumes

I have two external hard discs on an OpenSUSE 13.1 system. On one I have created a partition structure: An encrypted LVM partition (LUKS) Several volumes (10) on this LVM partition, some formatted ...