These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

0
votes
1answer
867 views

How to display TCP handshake in Linux [closed]

Hi is there a way to display TCP handshake in Linux? Like for example this WIKI - TCP handshake Not exactly like the illustration but at least it would show client has sent SYN, ACK, FIN etc and the ...
1
vote
1answer
270 views

Display ONLY IP addresses of currently logged users

I want to get a list of the currently logged users and their respective IP addresses. I tried the following command line: w -s However, the TTY, IDLE and WHAT columns are also displayed. I don't ...
1
vote
4answers
90 views

Is there a robust way to cache contents of usb on local hd?

I'd like to switch between working on a laptop with a debian vm and a desktop pc running debian while carrying all my work files in a usb. Is there a robust way to automatically start caching the ...
2
votes
1answer
224 views

Jolla mobile ported to Nokia N9 [closed]

I own a Nokia N9 and would like to know if anybody has ported Sailfish to it yet? In case you're not familiar with Sailfish this is the wiki page.
0
votes
2answers
852 views

How do I make PHP securely load files from the server root home folder on CentOS?

So I built what I thought would be this awesome reporting page in PHP that loads data from some CSV text files and creates nice Google charts and tables for our clients. I then thought it would be ...
14
votes
2answers
121k views

Boot windows from grub rescue command prompt

Previously I had installed the Ubuntu 10.04 and Windows 7. Now I logged on to Windows, opened thepartition editor and deleted the volume containing the Ubuntu (Thought it will delete the Ubuntu and ...
0
votes
1answer
2k views

brcmsmac does not work

I am attempting to enable my wireless interface in Slax Linux, so far, I know the driver I need is brcmsmac, since I have a broadcom card; and this work in Slackware. The driver is available and does ...
1
vote
0answers
862 views

GRUB can't find an existing file?

I'm trying to install GRUB, but when I try to boot, I get this: error: file '/boot/grub/i386-pc/normal.mod' not found. But that file exists on the drive I'm booting to. Why is it saying "not found" ...
2
votes
2answers
2k views

Console font - how to show accents?

Arch linux on VirtualBox. My problem is the console (not X) does not show accents like "á ã ç". The problem is showing, not typing. I have a text file with these accents and when I use "cat" the ...
4
votes
4answers
56k views

Show running processes with file name(s)?

I am using putty to connect my linux server which my sites are in. I can run # ps aux | less to show running processes. But I want to display which files running these processes ? I have also ...
6
votes
3answers
12k views

Check outgoing network traffic

In Ubuntu, how can I check what information is being sent through the network connection, what programs are doing it, and what sites is my computer connecting to? I am not paranoid about security, ...
2
votes
3answers
4k views

How to simulate unplugged network cable or down server?

I have simulated network latency with netem and It's great. Now I want to simulate unplugged network cable or when server goes down. I need this to make testing of my application easier and I couldn't ...
3
votes
2answers
1k views

Using TMUX on boot up of Linux CentOS

I'm trying to figure out a way in which I can boot TMUX under a user other than root, but automatically whenever Linux starts. At least that's what I think I need. What I want is to be able to SSH ...
3
votes
1answer
4k views

Unable to install LAN driver in RedHat (*** /lib/modules/2.6.32-358.el6.i686/build: No such file or directory)?

I tried to install the Realtek LAN driver on my RHEL Server (running version 6.4). In the folder extracted: autorun.sh log.txt Makefile README src \>type command: ./autorun.sh ...
6
votes
1answer
1k views

Determining LVM Extent numbers for given file

I'm currently engaged in a non-work related homework exercise. I have an ext4 filesystem sitting on a logical volume. I'm testing different performance tuning strategies and this idea occurred to me. ...
-4
votes
3answers
3k views

ubuntu: sudo find / -type d -exec chmod -Rf a-wr {} \; the user can't login [closed]

I used ubuntu 12.04 (32bit).Today,I mistakes a command is executed: WARNING DO NOT EXECUTE THIS COMMAND: sudo find / -type d -exec chmod -Rf a-wr {} \; I can't login system;The System is only one ...
4
votes
3answers
240 views

Can someone execute a malware by just inserting a flash disk?

I know that Linux is virus proof, but just to be sure...Suppose someone writes a script, trojan, etc... and put it on a flash disk or CD. then I insert that flash in my system without clicking on any ...
1
vote
0answers
1k views

Build Linux and run it (uImage) on the Beagle board - xM

I'm working on some project where I'm using the Beagle board - xM Rev C. Power supply is 5V/2A adapter. My task is porting Linux Angstrom on the board but I have some problems. I have choosen Linux ...
1
vote
1answer
173 views

How can i change the color in the panel when a program needs attention?

I'm running Linux Mint 14. I want to change the color in the panel when a program requires your attention (like when you receive a chat message). Not the color of the entire panel, but only the box ...
0
votes
1answer
57 views

No internet access for system services; however, browser access works

Unable to reload repos via apt-get, aptitude, or synaptic. Dropbox does not connect or sync. Pithos does not connect to pandora.com. Chrome and Firefox browsers do work fine. I have been unable to ...
6
votes
2answers
14k views

Ubuntu: How do the md devices get assembled at bootup?

How do the md devices get assembled at bootup in Ubuntu? Is /etc/mdadm/mdadm.conf truly the relevant factor here? My mdadm.conf is sound and I checked that while I was in the rescue CD environment. ...
3
votes
2answers
344 views

What are TTYs >12 used for?

Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1 and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports ...
1
vote
1answer
202 views

What are the different virtual TTY numbers used for?

It seems by default (at least on Ubuntu, but I think I saw the same on other distros) there are virtual TTYs 1-6 for text login, 7 for GUI login, and 8 upwards are unused or at least non-interactive ...
1
vote
1answer
139 views

lp command can’t open samba url

I have a Linux host with Samba installed and a Windows server with some Files. Samba is set up correctly and works just fine. I can show PDFs from the Windows server with evince ...
1
vote
2answers
3k views

Information about the device files: /dev

ls /dev command lists the device files. How to know the associated drivers/major_numbers/minor_numbers with those device files?
1
vote
0answers
153 views

Modifying resolv.conf when when bringing network interface up on system startup

My Linux box currently has a network interface that allows me to connect to a network on a different subnet. I've achieved this by modifying the routing table when the network interface is brought up. ...
14
votes
7answers
3k views

determine shell in script during runtime

As per my knowledge, to determine the current shell we use echo $0 in the shell. Rather I want my script to check in which shell it is running. So, I tried to print $0 in the script and it returns the ...
3
votes
1answer
913 views

Laptop keyboard occasionally stops working

I have a dirty solution that is to plug a USB keyboard in and execute the following command: setxkbmap -rules evdev -layout us -model evdev Afterward my keyboard will work. This solution only ...
0
votes
1answer
329 views

VSFTPD Virtual User Group

Currently I have a Running vsftpd server in a Cent OS Machine with virtual users. Users are authenticated using MySQL. The users has all the permissions in their home directory and they are jailed ...
2
votes
3answers
3k views

Cannot create a partition after the 4th

When using cfdisk to partition for Arch Linux, I found that after the 4th partition, I can't make any more. I'm using VMWare Player as a VM, and I'm using a single fake HD file. Earlier I thought ...
0
votes
1answer
1k views

Connecting from OpenVPN Server to MySQL Server

I have an OpenVPN server installed on a server. What I'm trying to do connect from the OpenVPN server using the mysql client to the MySQL server than is connected to the OpenVPN server using a ...
5
votes
1answer
1k views

tc on bridge port

I have a 4 port bridge: root@Linux-Switch:~# brctl show bridge name bridge id STP enabled interfaces br0 8000.000024cd2cb0 no eth0 eth1 ...
1
vote
2answers
4k views

System sending SIGTERM and SIGKILL during normal work

I have a program (C++) that works with TCP sockets in multithreaded manner. The multithreading is intensive, about 100 threads (POSIX threads). Sometimes, not quite sure when, the program gets ...
0
votes
1answer
139 views

What are the other congestion control algorithms specially designed for lossy Wireless Networks like LTE and WiMax?

I am trying different congestion control algorithms for getting maximum throughput and minimum delay across my setup for TCP flow.Please suggest other available algorithms apart from Veno, ...
1
vote
1answer
184 views

Establishing I/O Patterns for an Application

Are there any system tools that allow you to profile an application's usage of storage? Basically, I'm looking for information on determining whether there are more large sequential reads, tiny ...
1
vote
1answer
1k views

Wifi AP with ASUS USB-N10

I am trying to configure wifi AP with subj device. According documentation in web, it requires master mode hardware support and hostapd software. It seems I have master mode: # iwconfig ... ...
2
votes
1answer
382 views

aptitude current status warning

After installing some packages, i.e. sudo aptitude install pkg ... , there was a line of message at the end of the output: Current status: 0 updates [-66]. What does it mean?
2
votes
1answer
4k views

Run expect script from other shell

My target is to create the /var/tmp/add_user.bash script from /var/tmp/create_script_add_user.bash script and run the expect script (add_user.bash) from create_script_add_user.bash script. The ...
3
votes
2answers
4k views

Why does modinfo say “could not find module”, yet lsmod claims the module is loaded?

According to the man page of lsmod the command shows “what kernel modules are currently loaded”. I wrote a script that uses modinfo to show what kernel object (.ko) files are actually in use: ...
0
votes
1answer
138 views

Reading Linux distribution name from filesystem or command [duplicate]

I need to collect some system info from linux machines and decide what to do based on some distribution/version -specific conditionals. To simplify my example, I concocted a fictitious ...
0
votes
3answers
12k views

Regular Expression for finding double characters in Bash

I am looking for a regular expression that finds all occurences of double characters in a text, a listing, etc. on the command line (Bash). Main Question: Is there a simple way to look for sequences ...
3
votes
1answer
517 views

Install x11 on my own linux system

I have developed my own tiny linux file system using buildroot and busybox. I used linux-2.6.38.8 kernel configured and cross-compiled for target system(X86) according to needs.Now the filesystem is ...
1
vote
0answers
1k views

Unable to install Atheros AR8161 Ethernet controller driver for centOS 6

I've installed CentOS 6.3. However, eth0 does not show up on ifconfig. So I figured out that I need to install alx Ethernet driver from here. Since my internet is not working, as ethernet drivers are ...
1
vote
3answers
3k views

Sort with unequal whitespace in first column

I need to sort this list by name, high temp and low temp: Kuala Lumpur 78 56 Seoul 85 66 Karachi 95 75 Tokyo 85 60 Lahore 85 75 Manila 90 85 I figured since whitespace is the delimiter for a column ...
3
votes
1answer
700 views

curses-based program for selection item from the list

Is there in the linux any program which can represent (via pipe or something like that) results of such commands as, for example, ls, cat, grep, ps etc, by means of curses (for example as listbox)? So ...
1
vote
1answer
562 views

How to explicitly load shell interpreter in a C program

I want to create an executable script which is not readable/writable However since an interpreter needs to read this file it is not possible to do so directly. Therefore I wanted to know if I could ...
1
vote
1answer
629 views

How to troubleshoot high kernel time (high network usage; high interrupts)

I've noticed that I have high kernel time when doing a lot of network traffic in Linux. I also noticed that 45% of my CPU is spent doing interrupts. How can I further troubleshoot this?
2
votes
2answers
6k views

Regular expression problem(s) in Bash: [^negate] doesn't seem to work

When I execute ls /directory | grep '[^term]' in Bash I get a regular listing, as if the grep command is ignored somehow. I tried the same thing with egrep, I tried to use it with double and single ...
2
votes
3answers
14k views

linux command to check POSIX message queue

We can check the details of system V message queue with the help of ipcscommand. Is there any command to check POSIX message queue in Linux?
0
votes
1answer
342 views

emacs fonts from ssh not as good as locally installed

How can I have the same emacs fonts and antialiasing configuration that I have in my local Ubuntu 12.04 also working when I open an emacs session via ssh to a CentOS 5 system? EDIT: I didn't get an ...