Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

1
vote
3answers
788 views

How do I send a command to a Linux box from a Windows box in a script?

The problem: I have a backup program (BackupAssist) that can run scripts automatically after a backup. I want to automatically shut down the computer that stores my offsite backups after the backup ...
0
votes
1answer
367 views

Apple streaming tools on Linux

Can you guys help me. I need to run Apple's http live streaming command line tools on Linux. I've tried different ways to install .dmg itself, then I've tried to extract files from it, then finally I ...
0
votes
1answer
820 views

How to see whats eating my swap space on linux

I have a unique situation here where a Java app I wrote is choking when it forks and creates some child processes. According to the error logs I'm seeing there is a java.lang.UNIXProcess method ...
1
vote
1answer
405 views

What does the output of this “source” command mean?

Unix newbie here, installing MYSQL. Per the directions from the server admin, I just added two lines to the end of my .cshrc file to create 2 new environment variables: setenv MYSQL_UNIX_PORT ...
0
votes
2answers
765 views

Copy every file with a certain extension (recursive)

I need a script (may it be bash, ksh, or whatever) which copies, for backup purposes, all the sub-directories and files of a directory: .znc - but .log files. The structure is like this: ...
0
votes
1answer
2k views

Can't boot into Windows 7 from GRUB

So a while ago I installed Ubuntu. I was hoping I would be able to use Windows boot loader to choose between Windows 7 and Ubuntu every time I booted, but no Linux had to install GRUB. After a while ...
0
votes
3answers
1k views

How to search for a string in a line and return line and line numbers in linux?

I want to search for a string in a file, and the output should give me the line number and line containing that string. How can I do it?
0
votes
2answers
2k views

Can't mount filesystem on HD that came from WD NAS

I have a WD NAS drive, I need to recover some deleted files, so I've taken the drive out and plugged it into an Ubuntu machine to get direct access to the filesystem... When I check the drive in ...
1
vote
1answer
374 views

Specifying startup commands with socat

I'm connecting to a simple server which is offering a basic text-based interface using socat like this socat readline TCP4:localhost:8090 There are some initial commands I have to execute every ...
1
vote
1answer
63 views

VIM in shell triggers d key but GVIM work ok

I have strange problem with my vim. In shell when I edit file my VIM triggers (probably) d key (running vim test.txt). When I press j he deletes first 2 lines. Everything works ok when i run without ...
0
votes
1answer
5k views

Debugging connection timeouts using strace?

I'm trying to figure out why is Eclipse spinning, so I decided to fire up strace. I found the eclipse process using: $ ps ax | grep java 5546 ? Sl 19:04 /usr/bin/java ... [arguments ...
3
votes
1answer
1k views

Can't kill user process

On a Linux system it seems I can't kill my process I just started. ps -ax output: 6731 pts/1 DLl 0:06 ./main I tried kill -9 6731 but it just stays there. I don't have root access. What ...
3
votes
3answers
2k views

Linux CLI: fail-proof way to check temperature

I usually use one of the following to check temperature of Linux-based computers: $ cat /proc/acpi/thermal_zone/THM/temperature $ acpi -V $ sensors However, on the current system I am using (Debian ...
1
vote
1answer
75 views

How to share the environmental variables between windows and linux(Ubuntu)

I have windows 7 and ubuntu installed as dual boot. Till now i was working on Windows and have defined my user environmental variables. How can i import or use those defined in windows to ubuntu?
0
votes
0answers
45 views

How to make a script to download and configure apps?

I need to write a script to avoid the chore of downloading things and having to configure everything, every time I make a fresh install of Ubuntu. Any ideas on how to do that? Is bash the ...
1
vote
1answer
126 views

Do control groups improve system performances?

According to this website, enabling cgroups in the kernel can boost performances by sharing resources in a better way. In particular, the conclusion states that:  Nevertheless, with a little trial ...
11
votes
4answers
99k views

How can I resolve the error “cannot execute binary file”?

When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I couldn't do anything in here. Commands such as halt, ...
1
vote
1answer
255 views

How can I set `less` or `more` max lines (scrollable height) limit/boundary in linux?

(Sorry for the title. Any suggestions?) I've set my commandline PS1 to cover 3 lines: white space user, server and pwd $ or # to input I think less (or more?) is configured to break after ...
4
votes
1answer
652 views

Which Linux distribution for vehicle LCD instrument panel

I will be designing an instrument panel for a vehicle to display the common gauges that you would find in a car - (speedometer, rpm, fuel level, oil pressure, etc.). We have selected a 7" LCD and are ...
2
votes
0answers
452 views

XRDP multiple log in sessions

I use xrdp, and I am trying to have multiple sessions with the same user (ABC). I do not have any connection issues. What's happening is when I open the second session it just mirrors whats ...
0
votes
1answer
773 views

VIM zsh, bash and colors in command line on Ubuntu

I have problem with VIM command line when calling system commands. e.g. !ls, all command output colors aren't parsed by VIM. My system is Ubuntu 12.04 LTS with VIM 7.3.429 from Ubuntu repositories. ...
1
vote
2answers
1k views

How to reformat a MacOS X drive for external storage using Linux tools?

I have an old Mac OS X drive that I would like to reuse as external storage. I'm trying to reformat the drive to allow me to do this using Linux parted. I've been successful removing all the old ...
0
votes
3answers
640 views

Customizing BASH output colors?

How do I customize bash colors for command output? For example; I run ls and want directories and files to be a different color. How do I accomplish this? I see that distro's are doing this but I ...
1
vote
0answers
175 views

DLNA hardware player paired with router

I have a powerfull router (ASUS RT-N66) with built-in DLNA server (minidlna) with no transcoding functionality. My Philips TV could play about 60-70% files directly from router's DLNA server. So I ...
-2
votes
1answer
312 views

Running old Linux distros with VirtualBox [closed]

I'd like to run a pretty old Linux distribution (say from 2003) on VirtualBox. It doesn't look easy to find any ISO and package sources. Has any one try this rather strange adventure? Thanks,
1
vote
1answer
404 views

How to clear orphaned watch descriptors of inotify

After creating a file descriptor by calling inotify_init() I add thousands of watches to the inotify instance(hope it is right to call that so). My questions is if my program crashes what happens to ...
0
votes
1answer
301 views

claws-mail error “undefined symbol: g_mutex_new”

my grandpa is running Pclos 2012 KDE4 on his desktop and uses Claws-mail. However (maybe after last update) claws-mail suddenly dies after almost very action like forward, reply etc. without any error ...
0
votes
0answers
2k views

How to install 32-bit OpenJDK on 64-bit Unbuntu (and CentOS)?

I'm running 64-bit Ubuntu. I have a Java program that bundled with a 32-bit native library. I found no way to run it on the default 64-bit OpenJDK and manage to get a 32-bit one instead. But when I ...
2
votes
2answers
514 views

Why does 64-bit Java use more memory than 32-bit?

When using Eclipse I have noticed a significant difference in it's memory usage when run under different Java platforms. When using a 32-bit Java platform it has been using ~200MB RAM, however when ...
1
vote
2answers
2k views

linux can send fn key and disable touchpad?

I am using a laptop with Ubuntu 12.04 and I want to send a Fn+F8 from a script in order to disable my touchpad. When i type the command xdotool key fn, it prints (symbol) No such key name 'fn'. ...
0
votes
0answers
946 views

How to resolve “grub loading error: no such partition” error?

I'm having Lenovo laptop that issued by the Tamil Nadu government. In that I cannot boot the operating system. It's showing grub loading error: no such partition grub rescue> How can I break ...
0
votes
0answers
392 views

Why isn't my printer listed?

Why is my printer not listed when using the lsusb command? I've got a HP Photosmart C4780 connected via USB on Ubuntu 12.04. I've installed hplip but I still but this does not appear to have solved ...
1
vote
2answers
483 views

LXC error in Ubuntu Precise 12.04, can't find apparmor, this worked fine in 11.10

I'm getting this error using 12.04. When I run sudo lxc-execute -n foo -f lxc.example.conf ls, I get /usr/lib/lxc/lxc-init: error while loading shared libraries: libapparmor.so.1: cannot open shared ...
-1
votes
2answers
467 views

Create a Shell Service in Ubuntu

I want to create a service, which receives input from a shell script and returns outputs. where should I start, and what to do ? Please give me step by step instruction or reference to one. Thanks.
4
votes
1answer
2k views

How can I modify the EXIF orientation tag of an image?

I want to change the EXIF orientation tag in my JPEG images but without actual rotating of them. I want to do this to use them as a test case for an application I made. How I can do that in Linux? ...
0
votes
1answer
65 views

Linux header files referenced by mac80211 missing

I am using Linux 3.2.0-24-generic. I need to modify the source files of ath9k and mac80211. One of the files in mac80211 refers to a few linux header files such as linux/slab.h, linux/skbuff.h, ...
5
votes
1answer
575 views

Ripping TV episodes from DVDs – how can I know which stream belongs to which episode?

I'm ripping DVDs using a series of calls like mplayer -dumpfile foo$i.vob -dumpstream dvd://$i and using lsdvd to list the available streams to rip. Here is an example command I wrote for this for ...
-2
votes
2answers
16k views

A PC application similar to Wifikill in Android [closed]

Is there any (preferably Linux) program similar to the WifiKill Android app?
1
vote
1answer
805 views

CentOS 5, cannot accept htaccess

I have problem with htaccess on my vps.I installed CentOS 5, uploaded site on /var/www/html and it works.But, htaccess isn't working.I tried to add AllowOverride All in httpd.conf, also uncomment ...
3
votes
1answer
4k views

Default permissions with setfacl

Just started using setfacl to assign permissions for a specific group to /var/www/html (CentOS 5). Files in this directory are 640, root:apache. However, I've noticed that after doing something ...
0
votes
1answer
928 views

File command Linux parent package name

I cant find out what the parent package of the file command is. Need it installed on a Centos 6 OS. Regards Paul
0
votes
1answer
488 views

FTP Server setup: VM issues

I have an Filezilla FTP server setup on my Windows 7 64-bit machine. I can access this server on the Windows 7 machine itself. I have Oracle Virtualbox installed, with a RHEL 5 Guest OS using ...
1
vote
1answer
188 views

Formatting pwd/ls for use with scp

I have two terminal windows with bash. One is local on the client computer, another one has an SSH-session on the server. On the server, I am in a directory and seeing a file I would like to copy to ...
4
votes
2answers
66 views

How to “port” a current Win7 host into a VMWare image?

I'm planning on replacing my current host OS with a linux distro and then load the replaced OS as a virtual machine for apps that require Windows. Does anybody have a clue if something like this is ...
0
votes
1answer
206 views

How do I find what computer modem I have in Linux Ubuntu 11.10?

I can not find my modem in Ubuntu Linux 11.10. It is not detected in my laptop, how do I find what my modem is?
0
votes
2answers
2k views

How to align Logical Volumes on contiguous Physical Extents?

I have originally created 2 Logical Volumes in a Volume Group. The 2 Logical Volumes occupy the whole Volume Group and are sat on contiguous Physical Extents. However, after I have shrunk the first ...
4
votes
1answer
2k views

How to get a gnu screen session to auto start with a specific command?

I need a certain program to run inside a gnu screen session, automatically when an ubuntu machine boots. How can I set it up so that later on I can just screen -r and interact with the program?
1
vote
1answer
131 views

Why can’t I enter a directory when I have the right to?

My distribution is the latest Gentoo. I have a directory called music which belongs to qdii:commun and which octal access rights are "2070", that is: all permissions are granted to the group ...
1
vote
1answer
428 views

Can I replace my Linux installation with another one (without breaking my Windows dual boot)?

I have Linux Mint installed alongside Windows 7. I want to install Backtrack Linux instead of Mint. One of my friends said that if I installed it I would lose my Windows 7, and now I'm afraid to do ...
0
votes
1answer
506 views

Mouse right-click menu in RXVT

I moved from gnome-terminal to urxvt. I am used to having a right-click menu in gnome-terminal. Do such menus exist in urxvt?