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
votes
1answer
58 views

Linux User Permissions

In resume i want to assume a id on a Unix machine but i wanna know if its possible to limite to only read rights and no write on the system , but if you enter the acc i sudo to normally without the ...
0
votes
2answers
236 views

Proper line-ending for an open-source PHP project

What is the proper line-ending preferences for an open-source web project? Obviously it includes source code of PHP, HTML, CSS and Javascript. The source code is managing via Github now, and there ...
-1
votes
3answers
4k views

How to make a non-root user to use chown for any user group files?

I would like to make a user super powerful, with almost all root rights but unable to touch a the root user (to change the password of the root). My goal is to user "B" to manage my web server. The ...
0
votes
3answers
1k views

Why isn't passwordless ssh working?

I have two Ubuntu Server machines sitting at home. One is 192.168.1.15 (we'll call this 15), and the other is 192.168.1.25 (we'll call this 25). For some reason, when I want to setup passwordless ...
1
vote
0answers
601 views

Unwanted remount attempt of UBIFS rootfs during boot

I have an ARM system using buildroot-2011.05 - Linux 2.6.38.7. The board uses a NAND flash and to get around a problem with squashfs not liking bad blocks I changed the root file system to use ...
3
votes
1answer
569 views

chmod always unsets setgid bit on directories if I'm not in a group

Here's the scenario: I'm using Ubuntu Linux (12.10, if it matters), and I've got a directory whose permissions are thus: drwxrws--- paul www-data myfolder/ You can see the setgid bit is set. If ...
0
votes
1answer
2k views

Connect Android to Linux laptop

I would like to establish a network connection between a Linux laptop and an Android device. More specifically, there is an MPD server on the laptop which I wish to contact from the Android device ...
2
votes
3answers
4k views

Removing extended partition without deleting logical in it

I'm running a Linux-based laptop, and in order to multi-boot several distros in it, I created an extended partition which contains a bunch of logical ones with GParted. Now, after quite a long time ...
0
votes
1answer
500 views

Stop a process from listening to specific port but not kill it?

On linux. I stopped tomcat which was listening on port 80 using dtomcat5. I think that was the graceful stop? I cannot start it again because java continues to listen on port 80. Is there any way to ...
8
votes
2answers
851 views

Puzzling TCP performance over 3G / UMTS

I'm using 3G as my primary internet connection, and TCP over this thing is getting more puzzling every day. For example: Downloading from kernel.org is crazy fast: $wget ...
1
vote
1answer
60 views

Are there situations in which ssh -t shouldn't be used?

Working within a framework commands are issued to remote machines using ssh. Recently the -t option was added to the command in order to get it to work properly with sudo. However this option will ...
3
votes
1answer
6k views

sudo + x11 application does not work correctly

I couldn't get any program requiring x11 (e.g. gedit, nautilus) to work with sudo. Using gksudo would just fail silently, while on terminal I received the following error: sudo nautilus ** ...
3
votes
1answer
172 views

How to output a simple network activity plot in console in Linux?

There's tload that plots load average. There's iftop that network usage as bars. How to do something like this: # tcpdump -i eth0 --plot 'host 1.2.3.4' 13:45:03 | | 0 in 0 ...
1
vote
1answer
310 views

Compare two file systems between Solaris and Linux

I am trying a source to target file comparison between Solaris and Linux. - I have a large number of files > 3000 - Large number of directories > 600 - Directory structure remains same - I ...
0
votes
0answers
240 views

executing a command of a chroot outside of the chroot

I have a chroot environment on /data/workbench/mnt and I want to execute a binary which is inside the chroot environment (for example /data/workbench/mnt/bin/bash). I added the chroot library path to ...
1
vote
2answers
508 views

Resizing mysterious partition written by DDing an ISO file

I downloaded clonezilla and then wrote it to a USB flash drive with this: dd if=clonezilla.iso of=/dev/sdb I've confirmed that the system boots and clonezilla runs from the flash drive. I want to ...
3
votes
1answer
5k views

How do I get the current date according to an NTP server without setting it locally?

I want to get the current date and time according to a remote NTP server, using Linux. I don't want to change the local time as a result; I just want to get the remote date, adjusted for the local ...
4
votes
1answer
3k views

linux: per-process monitor, every 10 minutes, with history access

I really didn't know a better way to ask my question, hence you get a horribly named question. I will explain what i want to do, maybe that will help you help me. I would like to have my linux ...
1
vote
0answers
3k views

how to bypass this error : “port range not valid”?

I have a port number that I want to connect to it via net-cat. previously I was working with windows and it was working perfect; but now in Ubuntu when I want to run the Net-Cat it's show me this ...
0
votes
2answers
270 views

Linux side by side with Windows

I have a laptop with two partitions- one with a Windows 8 Pro, and the other with a BackTrack5 Linux OS. I can easily switch between the two, provided that I restart the laptop. Is it possible to ...
0
votes
0answers
61 views

Weird behavior of sudo

I use putty to log in to a remote LINUX machine. (Ubuntu 10) When I log in I have to authenticate myself, that goes on pretty smooth. Whenever I try to use sudo or su though, I experience ...
0
votes
1answer
201 views

rtorrent won't use .rtorrent.rc [closed]

I have looked around a bit on the web, and can not find a solution to this. As far as I know, I have the .rtorrent.rc file in the correct directory, but rtorrent refuses to acknowledge that it is ...
1
vote
2answers
5k views

Where is the visualVM executable for linux?

I'm trying to install the VisualVM plugin for eclipse, on my Ubuntu linux. I'm following the instructions here. So I've done the installation part, and the plugin is installed to eclipse. Now for ...
3
votes
2answers
2k views

How to scan an image and automatically crop it to the scanned content with a linux command line tool?

I need to scan lots of small items with quite similar, but not the exact same, size. What I thought I'd like to do is: Run a linux command line tool with the file name as a parameter which runs the ...
0
votes
0answers
91 views

I'm looking for a text-based web browser with support for user scripts

So far I've acknowledge lynx, links and elinks, but none supports userscripts. Is there any other that supports userscripts? What I want to do is apply a script that would format certain pages to be ...
1
vote
1answer
94 views

create and mount partition on running VM Linux system

I have an Ubuntu 12.04 machine running as a VM and I would like to create a 'data' directory with the unallocated space left on /dev/sda. I managed to create a /dev/sda3 partition on the available ...
0
votes
2answers
1k views

Error setting up Crontab

Trying to set up a cronjob: 0 12 * * * /usr/bin/mysqldump --all-databases > /backups/mysql/`date "+%Y-%m-%d"`.sql Getting error: crontab: installing new crontab "/tmp/crontab.fuly8s":2: bad ...
2
votes
1answer
301 views

DIY rack mounted server running Linux, where to start? [closed]

I want a "high performance" server where I can run perhaps MySQL and also different types of batch jobs. I want high performance CPUs (lots of cache, etc.) and as much RAM as possible (e.g., 64 GB) ...
1
vote
1answer
162 views

Cannot see dual boot menu

I installed linux mint 14 a few days ago(With windows XP sp3). And yesterday i uninstalled linux because of low disk space. After uninstall Linux i entered in recovery console and typed "fixmbr". ...
0
votes
1answer
245 views

Free Space not shown in partiton even after extending it through gparted

I have a Ubuntu machine running 12.04 LTS on it. I had a very small "/" partition at the beginning, say of 16 GB. Now i added a 50 GB to it which i split from another partition and added to the "/". ...
3
votes
1answer
3k views

how to install a old version of gcc compiler from software manger and use it with plain “gcc” command?

I am struggling with the problem of Matlab mex compile. It needs specific old version of gcc compiler 4.4.6 . But in manager there is only 4.4 version. How could I specify it as 4.4.6? Or is it ...
0
votes
1answer
495 views

Trying to make a custom Arch-based Linux distro with larch

I'm all set up with a spiffy Arch installation in a virtual machine, and now I want to turn it into a live ISO. When I heard about larch, I thought it would be the perfect tool to turn my existing ...
1
vote
2answers
1k views

Assign values or string to a variable in linux scripting

I am trying to assign the output of the basename command of a file to the variable "filename". paths is a file that contains the path location, e.g /root/home/david/mynote $FILE is = mynote. grep is ...
0
votes
1answer
445 views

Windows host terminal to Linux VirtualBox guest

Given Ubuntu 12.10 running in VirtualBox on a Windows 7 host, is there a way to set up a terminal such that the terminal is running on Windows but connects to Ubuntu by telnet/SSH/whatever?
4
votes
2answers
3k views

UTF-8 locale portability (and ssh)

I spend a lot of my time sshed into various machines, all of which are different (some are embedded, some run Linux, some run BSD, &c.). On my own local machines, however, i use OS X, which of ...
1
vote
0answers
868 views

Webcam stream doesn't work on Logitech E2500

I'm currently trying to get webcam streaming to work on a Logitech E2500 with ffmpeg. Running the command gives me some kind of buffer length error. pi@raspberrypi ~/ffmpeg-dmo-1.0 $ sudo ...
2
votes
1answer
385 views

Able to ssh but not able to browse centos server

I recently installed the CentOs server on the VM and I am using a Host Only Interface, and have set the IP address of the host and Centos. I am able to SSH from the terminal of the host to Centos but ...
2
votes
4answers
678 views

How to save and restore file's created/modified dates?

I've copied a bunch of files from one server to the other, and now the files' dates are reset to current. How to backup files' dates on old server and restore the them on the new one (without ...
1
vote
1answer
597 views

Is it possible to run a Windows Visual C++ program in Linux?

I am trying to run this code on PAGE 7. of this document, and successfully ran it on Microsoft Visual Studio 2010 for Windows. The problem is that I need to get this code working on linux. I read up a ...
0
votes
2answers
528 views

Why I can decrease the process's priority by using nice() function with a typical user permission(except ROOT) in linux?

As I understand every user in linux can change the every process's priority by using nice and renice commands. Also I know that the all users just can increase the priority of processes and the only ...
3
votes
0answers
555 views

xawtv/streamer webcam snapshots are “wrapped”, but streaming works

If I take a snapshot with my webcam, either through right-clicking in xawtv or through streamer -o snapshot.jpeg, the image is distorted. The simplest way to explain is through an example pictures: ...
1
vote
1answer
162 views

How to autostart multiple commands within one?

I want to autostart a program with multiple commands within one. Here are my 3 separate commands: sleep 3s cd /home/user/programdir/lpfw/ gksudo ./lpfwpygui My command is sleep 3s;cd ...
1
vote
1answer
869 views

Update single kernel module / driver

I needed a newer version of a Kernel module in an quite old kernel. How can I replace a single kernel module of the mainstream linux kernel and compile only this module?
0
votes
0answers
42 views

firefox bug with history

I noticed the following unwanted behaviour (bug) on the latest firefox for linux: go to youtube.com click on "trending" click on any video (the first one for example). click on the firefox 'go back' ...
7
votes
2answers
11k views

How to power off a Debian Linux box via console

Brand new to Linux. I need to turn my box off and put it in my server room. The help here and everywhere seems not to work for me: http://debianhelp.co.uk/shutdown.htm I get: ...
6
votes
1answer
676 views

New to terminator on linux. Why aren't scrollback searches highlighted?

I'm using terminator on linux/ubuntu. When I do ctrl+shift f, I get a prompt to enter a search key to search my scrollback (terminal output). However, as I go through the search results one by one, ...
0
votes
2answers
2k views

Ubuntu reset network configuration

When I boot up my ubuntu server, it cannot connect to my wireless network anymore. It says "waiting for network configuration" for 60 seconds, boots up, but no wireless. I suspect it's because of the ...
0
votes
1answer
218 views

Is there a race condition when two computers have the same remote directory mounted over NFS

I am seeing some very strange results in a filesystem where I have one machine that creates a directory in a mounted NFS filesystem, does some work it in, then makes a remote call to another machine ...
0
votes
0answers
181 views

1:1 NAT IP address using iptables

Suppose I have 2 internal networks: 1.1.1.0/24 and 1.1.2.0/24 I would like to NAT a specific IP address from one network to the other, in which the new address would be obtained via DHCP. For ...
1
vote
1answer
3k views

How to address an alsa “mixer_device” in mpd config for a second sound card?

I run mpd on a system with a built in sound card and a second card that I plugged in via USB. Adressing the second sound card in the mpd.conf was easy: change: device "hw:0:0" to device "hw:1" ...