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

0
votes
0answers
30 views

Creating multiple proxies on a single VPS

I am trying to create SOCKS Proxies on my Debian Linux VPS. I was just wondering what is the best way to go about doing this? I have tried things like Dante and it doesn't support multiple Proxies.
3
votes
0answers
43 views

Why is my swap not being activated automatically via fstab?

I've got a Linux embedded system that I'm experimenting with (the Elektor Embedded Linux Made Easy board, based on the GNUBLIN http://en.gnublin.org/index.php/GNUBLIN-Elektor). I'm using the 3.3 ...
0
votes
1answer
112 views

read only root filesystem

Somehow my Debian went to read only in root file system. I have no idea how this could have happened. For example when I am in /root folder and type command nano and after that press Tab to list ...
0
votes
2answers
58 views

29GB Log File on Linux Mint on a 38GB Partition

Had a low-space warning, Google'd the problem (had 1.8GB free at the time), found topics about running $ sudo du -x -d1 -h /var | sort -hr and I did: 30G /var 29G /var/log 353M /var/cache ...
0
votes
0answers
9 views

Could I disable ext4's journaling safely in BBWC?

I knew set "nobarrier" flag is safe in BBWC when using ext4,but since "nobarrier" flag couldn't ensure proper order of journal logging and data flushing,then it seems journaling is useless。So is it ...
3
votes
1answer
62 views

Is there a way to pass a variable from an awk statement to a bash function as an argument? [closed]

I am trying to look a for some specific values from (such as 1 or 4 and 2 or 3) a text file using an awk statement in a bash script. If this value is found in the file (within the awk statement), then ...
5
votes
1answer
60 views

Linux: $SSH_CONNECTION is set even without SSHing to the server

I have a remote server and I am writing a script in the server and want it to fire only when I SSH. I thought of using the $SSH_CONNECTION and $SSH_TTY for this purpose. I found out that when I have ...
4
votes
1answer
82 views

PS: what does “ps -o comm= -p $PPID” do

I have a script which does ps -o comm= -p $PPID. The explanation says this gets the parent process name. From the man page I found out -o means user defined format, comm means command and -p means ...
2
votes
2answers
221 views

Linux mint 15, synaptic can't download all repository indexes

I'm using Linux Mint 15, and started getting these errors from synaptic update manager. I did not change anything in the system, one day it just started to throw these errors. My network works OK, all ...
2
votes
0answers
15 views

how to migrate a squashfs system to another filesystem that's read/write

Well, basically what i want to do is copy all of my router's files (even the dev file (because i'm running busybox)) to my usb flash drive and let my router by default boot from the usb device. it ...
1
vote
0answers
28 views

What does the 'barrier' mount flag mean in Linux?

The manual for the 'barrier' mount option is: barrier=0 / barrier=1 This disables / enables the use of write barriers in the jbd code.barrier=0 disables, barrier=1 enables (default). ...
0
votes
0answers
12 views

sslserver using 100% cpu

I've a qmail setup with sslserver being used to secure the pop connections. Normally it runs very well, however some instances of sslserver start taking 100% cpu and its child process qmail-pop3d ...
1
vote
1answer
18 views

Naming PPP interfaces

I have two PPP peers, dsl-line1 and dsl-line2 which are configured with pppd on Ubuntu (Server) Linux. They are brought up by the /etc/network/interfaces file with the auto thingy however each PPP ...
2
votes
1answer
43 views

What to do when you removed execute permission from some system binaries or libraries?

It seems I removed executability from system binaries, resulting in loads of Permission denied. Do I have to force reboot into host's rescue mode or is there something else I can do while I'm still ...
4
votes
4answers
223 views

Log out a user and delete the account

I am having a problem on the server (CentOS 6, Plesk 11.5) where a particular user is using a mass mailer and is blacklisting our IP address. I have tried to delete this user using: /usr/sbin/userdel ...
1
vote
2answers
72 views

diabling cpu cores on quad core processor on linux

I want to disable 3 CPU cores and run my processor on a single core. I have used command:maxcpus=1. But after this I executed this command ls /sys/devices/system/cpu. It still shows ...
1
vote
2answers
49 views

Symlink from one workstation to another without mount

I am trying to create a symlink of a file on one linux workstation to another linux workstation, without having to 'mount' any network shares. Here's what I am trying to do, but can't get it to work. ...
0
votes
1answer
24 views

Why is my Netstat not returning the desired output and just getting hung up?

My remote Linux machine is able to ping an IP address on an internet, but the same is unable to get the netstat report for that IP, please help through. ping a.b.c.d 64 bytes from a.b.c.d: icmp_seq=1 ...
2
votes
1answer
24 views

Debian installer - customize busybox and live system/environment

I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi ...
1
vote
1answer
54 views

How to transfer data “offline” between osx and ubuntu?

I need to transfer around 50gb of data from my Ubuntu to my OSX. scp and samba are both too slow it seems - even with the Ethernet cable connected (14-15 hours!). I have physical access to both ...
6
votes
2answers
290 views

How does stack allocation work in Linux?

Does the OS reserve the fixed amount of valid virtual space for stack or something else? Am I able to produce a stack overflow just by using big local variables? I've wrote a small C program to test ...
1
vote
0answers
41 views

Essential tasks of a routing daemon in Linux [closed]

What I have understood so far from some software router projects already there (e.g. bird), there are some essential subtasks for routing in Linux. Task 1: Get a routing table first (using ip route ...
1
vote
1answer
24 views

Could I set flag “barrier=0” when using SSD?

I'm using ext4 filesystem in SSD,when mounting SSD,could I use flag "barrier=0"? I knew this flag is safe for BBU(battery backup unit),but is it safe for SSD?
6
votes
1answer
110 views

ssh from linux into mac - permission denied

I'm running a Oracle Linux VM on a Windows 7 host and I'm trying to ssh into my MacBook. I've already created the private/pub keys in my Mac. I have copied the id_rsa.pub contents into the ...
2
votes
0answers
28 views

Focusrite Scarlett on Linux input mapping?

Does anyone use these interfaces on Linux? If so, how do the inputs map (e. g. with ALSA/PulseAudio)? E. g. the Scarlett 6i6 has the following connections. Inputs: 2x symmetric XLR inputs (one for ...
2
votes
1answer
27 views

Which distributions can have a network installation started from a floppy?

Suppose I have computer with no USB boot option; no CD/DVD drive; an unformatted HDD; and a working connection to the Internet (via a local network segment with a DHCP server etc)... and an FDD. Can ...
2
votes
1answer
38 views

What is the use of “magic arguments” in Linux reboot system call?

As I was reading Linux source code, and more specifically the system calls code, I came across sys_reboot implementation: http://lxr.free-electrons.com/source/kernel/reboot.c#L199. 199 ...
2
votes
0answers
18 views

Qstat error in Eqw [closed]

can any one help to understand how to solve that problem? 365227 0.50500 towhee jmaia Eqw 07/19/2014 19:22:55 when I do: qstat -j 365228 | grep error that appears: error reason ...
3
votes
1answer
26 views

Linux console: only kernel messages are printed

My Linux system is built by Buildroot and runs on a Raspberry Pi. I use a Usb to TTL Serial cable to get a console. Here comes cmdline.txt dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 ...
1
vote
0answers
61 views

How to boot Linux [closed]

I have a Linux box that I used to write my dissertation. I have used the Linux box for composition and email for a number of years. Unfortunately, for the past couple of years I have been in a ...
4
votes
1answer
154 views

ifconfig command not found

I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running ifconfig returns command not found. Also running sudo /sbin/ifconfig returns commmand not found. I am root. ...
0
votes
2answers
28 views

Using /proc/stat for the number of processes running on the system

How does one find out the true number of processes that is running on your system. A number of articles mention using ps in order to count the number of processes. But recently I looked at cat ...
3
votes
1answer
56 views

Spoofing or removing DHCP client hostname in response to DHCP server

In linux, when my machine requests an IP address it also sends the hostname back to the DHCP server. How can I stop my machine from sending back this hostname? I use dhclient, possibly via ...
1
vote
0answers
53 views

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [closed]

When I try to start MySQL it says "failed!", so I try using mysqladmin ping and get the following: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server ...
0
votes
2answers
30 views

Know which partitions are primary and which logical

I have Windows and Ubuntu installed on the same laptop. How can I know which partitions are logical or primary using the command line?
4
votes
2answers
58 views

Booting a Raspberry Pi from an NFS share

I am trying to boot my Raspberry Pi using an NFS share. I have copied the boot partition of the Raspbian Wheezy image to the SD card and copied the root partition to a networked hard drive. I have ...
2
votes
1answer
46 views

Use two NICs for different subnets

In my office I have use a system with two network cards. I want to use both at same time. I have four subnets in my LAN. I want to route two subnets (192.168.2.0 and 192.168.4.0) through eth0 and ...
0
votes
1answer
28 views

laptop enery management for improving battery lifetime Linux

I have bought a Lenovo Ideapad that cames with Windows preinstalled. I installed Ubuntu 14.04 to dual boot. There is a tool for Windows called Lenovo Energy Manager that allows to control the charge ...
-4
votes
2answers
58 views

How to print numbers horizontally? [duplicate]

I would like to print something as 5,4,3,2,1. This is my program, but it prints the numbers vertically. numbers=5 i=1 while [ "$i" -le "$numbers" ] do echo “$i” i=$(( $i + 1 )) done Do you have ...
1
vote
0answers
21 views

Recover deleted files on Raspberry Pi? [duplicate]

So I just rm -rf'ed a folder with a few files I need. Yes I know I should've had a backup, but it's just a Pi. It's designed to be played around with! Is there anything I can do to recover that ...
1
vote
1answer
49 views

Excessively high disk usage freezes my server

I have a laptop converted to a Linux Mint server running a variety of services. Recently, it started being unaccessible at random. The situation seems intermittent. The server is usually blazing ...
1
vote
1answer
30 views

How can I exclude some library paths listed in “ pkg-config --variable pc_path pkg-config”?

I have Ubuntu 14.04 upgraded from 12.04 making dist-upgrades. I did many manual installations such as ffmpeg, libglib and so on, in the past. I have a nice custom distro now, it works well but I have ...
0
votes
1answer
25 views

ARM cross compilation package not found

I'm trying for arm cross compilation on my i386 machine using sysroot and chroot.I want to set environment variables like PKG_CONFIG_PATH to sysroot.Right now my code is not compiling because it is ...
2
votes
1answer
50 views

Does pgrep output ever include the parameters supplied to the process?

The snippet below (from an existing script) is used to check the xvfb processes and whether they are listening on a specific port: my_list=`pgrep -u $CurrentUserID -fl Xvfb | grep :${XVFBPORT}` ...
2
votes
2answers
127 views

Remove all lines in file A which contain the strings in file B

I have a CSV file users.csv with a list of userNames, userIDs, and other data: username, userid, sidebar_side, sidebar_colour "John Lennon", 90123412, "left", "blue" "Paul McCartny", 30923833, ...
3
votes
1answer
30 views

Openbox pipe-menu script error

This is the weirdest thing. The script works when run from the shell with no problems. When I run it as an Openbox pipe-menu I get the error "Invalid output from pipe-menu". After playing around with ...
3
votes
1answer
58 views

Artificially prime buffer cache?

Is it beneficial to artificially prime the buffer cache when dealing with larger files? Here's a scenario: A large file needs to be processed, line by line. Conceptually, it is easy to parallelize ...
1
vote
1answer
20 views

Need data after Last comma in field1 from the Text in Unix [closed]

$ cat sample.txt 414d51204d5150525447575648415050529a6af298e,,,002330618820140707134048 ,+0657,45675 414d51204d514e55533732355051543051696344201645c6,002330618820140707134048 ,+0657,tgre,ghty Need ...
0
votes
1answer
39 views

Hard drive making strange sound

It sounds like the HDD is put into a power saving/sleep mode, spun down, but immediately started up again, and then this repeated 3-4 times, very quickly. How could I find out what this exactly is, ...
0
votes
2answers
33 views

Where is the bugtracker for `ifconfig` located?

Is there an official place to file bugs for the package in which ifconfig can be found? Do most major distributions have their own implementation of the library, or does the library come from one ...