A family of Unix-like 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
435 views

Two simultaneous commands, then sequential commands?

So in Linux, I want to run a script 4 times, then do stuff to the output. I can do: script 1 > output1.txt script 2 > output2.txt script 3 > output3.txt script 4 > output4.txt cat ...
0
votes
2answers
314 views

SSH Port forwarding

I have a server machine (A) which has ssh installed, along with a webserver. How do I forward the port with the webserver to my local machine (B). I should be able to browse to http://localhost:...
1
vote
3answers
3k views

How do I grep the first 50 lines of each file in a directory recursively?

I need to search the first 50 lines of every file in a directory and its subdirectories. This will do the recursive part, but how do I limit to just the first 50 lines of each file? grep -r "...
1
vote
0answers
237 views

Why did my ubuntu machine leave suspend?

Sometimes I come upstairs and my computer has left suspend and is booted or booting or whatever. Is there a log somewhere that will show what caused it to leave suspend? (ie mouse, keyboard, magic ...
0
votes
1answer
891 views

How to remove large number of files/folders in linux

We are using hadoop to split a table into smaller files to feed to mahout, but in the process, we created a huge amount of _temporary logs. we have an nfs mount for the hadoop volume so we can use ...
2
votes
2answers
2k views

Why it is not recommend to use root login in linux [duplicate]

I am a developer using Linux fedora.I seen in lot of links that it is not a good idea to use root user,because someone can easily hack my password.Instead create a separate account for development ...
0
votes
1answer
326 views

How to change umask for a files created by application

I'm using Fatrat (http://fatrat.dolezel.info/) on a headless server. I would like every file and folder it creates (downloads) to be set with permissions umask 770 , so I can delete it via Samba user ...
0
votes
2answers
3k views

Reaver keeps reapeating the same PIN

I have been trying to Hack a WPA2 Wifi, and so far I am stuck with it. Problem is that it keeps trying the same PIN over and over again. Here is the last REAVER command I entered. reaver -i mon0 -b ...
1
vote
1answer
3k views

How to find out is a program run with nohup or not?

There is no difference in ps -ef | grep sleep output to commands: nohup sleep 60 & sleep 60 & In which way can I discover that program is run with nohup?
0
votes
1answer
539 views

apt - Remove not configured package

I have a Linux-Mint Debian Edition System. When I install sendmail I get an infinite loop. Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases......
0
votes
3answers
4k views

SCP not working in CRON job, only manually

I have a script on a remote server (bServer) which SSH's to a central server (let's call it cServer) and kicks a script which further SSH's to 2 other servers (server13 / server14). A script is run on ...
8
votes
3answers
2k views

Linux shutdown permission

Suppose you install a desktop environment, say ubuntu or debian. You can shutdown the system by clicking a button somewhere on your system menu as a normal user. You don't need to switch to superuser ...
0
votes
0answers
172 views

How to split server connection with VLANs?

first of all, i wasn't able to find a good heading. If someone has a better one feel free to edit. Today I got a new server and now I am trying to configure it, but I have a little problem. I want to ...
1
vote
1answer
544 views

resizing a terminal within tmux doesn't seem to work

I'm new to tmux, and I'm having trouble finding a solution to resizing my actual terminal (I haven't learned quite enough about panes and windows yet). I'm running tmux1.6, and bash as my shell, on ...
2
votes
3answers
332 views

Permanently set `find` regextype

GNU find allows the use of different regex formats via the -regextype option, but as far as I can tell I have to type out -regextype <whatever> every single time which is onerous. If one wants ...
7
votes
5answers
14k views

Bypass read-only SD card with missing 'Lock' slider

I have an SD card, that is broken, the slider for the "Lock" is gone. When I put it into my computer it turned out to be in read-only, How can I override this with software? I need to format the SD ...
1
vote
1answer
296 views

Which is better for multi-use auth, MySQL, PostgreSQL, or LDAP? [closed]

I want to set up an Oracle Linux 6 server that gives users secure IMAP email (with dovecot), Jabber IM, FTP (with vsftpd), and calDav. However, I want each user logon to be able to authenticate all ...
1
vote
2answers
5k views

How to run a program and get its PID in the background

I have a Minecraft server startup script that looks like this: #!/bin/bash cd "$(dirname "$0")" exec java -Xmx4096M -Xms4096M -jar minecraft_server.jar How do I get java process's PID while being ...
0
votes
1answer
686 views

Setting up a Network Bridge on Linux VM (Windows 7 Host)

I would like to use NetEm to simulate a low bandwidth environment while testing an Internet-connected device. My plan is to setup a bridge in a Linux VM (Linux Mint 13) on a Windows 7 host. ...
1
vote
1answer
2k views

Apropos on Arch returns “Nothing Appropriate,” no makewhatis command

I've been having a problem with apropos on both my Arch linux install and my ArchBang install. When I run the apropos or the whatis command, it returns "nothing appropriate" for anything I enter, ...
2
votes
1answer
631 views

Cannot disable gnome hot corner in Arch

I'm trying to disable the left top hot corner in gnome (Arch Linux) I read a tutorial for this in the arch wiki here. The thing is, i can only find this section: this.actor = new Clutter.Actor({ ...
1
vote
1answer
73 views

Will using the same password on windows 7 and Ubuntu make it easier to crack either?

I was just wondering if, due perhaps to different hashing methods, knowing that the password is the same for a Windows 7 and an Ubuntu system would make either system more vulnerable. The OSs are dual ...
1
vote
1answer
3k views

Creating new user using useradd ,but fails since its unable to create group in Oracle Linux 6

Below is the terminal execution [root@machine chef-server]# useradd -s '/bin/sh' -d '/opt/chef-server/embedded' -r chef_server useradd: Can't get unique system GID (no more available GIDs) useradd: ...
0
votes
0answers
32 views

USB flash drive recognized as Hard Drive [duplicate]

I have a serious problem. I own SandDisk's Cruzer Glide 16GB model and for some reason when I connect it to windows powered computers it recognizes it as a "Local Drive"/Hard Drive and not as a ...
0
votes
0answers
152 views

Cannot open Network-Manager-Gnome LMDE

Hi I am using the Linux Mint Debian Version After installing the recent Update pack 7, I cannot open The Networkmanager-gnome window. The icon on the Dock appears and I can switch on/off any networks ...
2
votes
0answers
1k views

CentOS 5.10 Yum Packages won't update/upgrade

I've just used yum to install PhpMyAdmin and it installed version 2.11.11.3-2.el5 which is completely out of date since version 4 is out. I've tried running yum update phpmyadmin but I receive No ...
2
votes
0answers
3k views

Ubuntu error Cannot mount USB drive Not Authorized

I have a Ubuntu 11.10 Desktop. Until now I was able to mount any external drives (USB flash drives which have FAT, SD Cards having ext4 partitions/filesystems using USB SD Card adapters). Both of ...
3
votes
3answers
4k views

How can I copy a folder from the Linux command line?

Say I'm in the / folder in a remote Linux machine I connect to over ssh. There's a folder called testapp. /testapp I want to create an exact copy of this called: /testapp-staging Using a GUI I ...
5
votes
2answers
2k views

How to debug old initd script under systemd?

I have an older initd script to start my application. It worked fine under older versions of SuSE, but fails on Open SuSE 12.3. The strange thing is cd /etc/init.d ; ./script start works fine. /...
0
votes
1answer
143 views

faulted newly created files when no free space

After running out of space in the $HOME i found some of my scripts failing, leaving corrupted files arround. I'll explain with an example: I'm using Ubuntu 12.04, the / partition is ext4 with the $...
1
vote
1answer
73 views

Centos repository packages vs latest developer release

I have started to run a personal server using CentOS and I have noticed that many packages that are available to install from repository are old compared with the latest release from the developer. ...
0
votes
1answer
250 views

compile and install qtcurve successfully but system settings can't find it

I use kubuntu and I compiled the source of qtcurve and installed (the result is shown at the end). After, I went to System Settings -> Application Appearance -> Style -> Applications -> ...
0
votes
1answer
612 views

rsnapshot / cp-al: duplicate files on mounted NFS share

The Scenario I'm backing up one of my Debian wheezy machines via rsnapshot. The target directory is a mounted NFS share. A Qnap NAS serves this target directory. The Problem But rsnapshot complains ...
1
vote
1answer
829 views

What version is my VPS?

I want to know what version of Linux is installed on my VPS, so I can reinstall the same image again. This is the information I have: # uname -a Linux chicken 2.6.32-308.el5.028stab099.3 #1 SMP Wed ...
1
vote
1answer
276 views

many doubts related to the ldconfig command?

I am pretty new in Linux and I have some doubt related to this operation that I have found into a bash script on which I am working: ldconfig -v >> /dev/null 2>&1 Reading on the man ...
1
vote
2answers
321 views

some doubts about chown command in linux?

I am pretty new in Linux and I have a doubt related to the use of the chown command use. If I have something like this: chown -R root:root /usr/share/MyApplicationDirectory What exactly mean? I ...
2
votes
2answers
1k views

Wait for linux machine to be rebooted

I have a small script to install on my remote machine an update. I would like to reboot the machine remotely and if it is rebooted, continue with some more commands. What I currently do is: ssh root@...
0
votes
1answer
884 views

How to configure in crontab with condition statement for checks

We like to monitor the NAS storage mounted on a Linux box. We only like to be notified via mail when the usage exceeds a certain number, say 80. We have only seen in Linux books where most of them ...
1
vote
0answers
154 views

FFmpeg audio dont work in converted videos

NOTICE: When I convert videos via terminal and download them from ftp into my PC, the audio works fine. I use: if($ext == "avi" && $convert_avi == true) { $convert_source = ...
1
vote
2answers
1k views

How can I cause Fedora Linux to show me the GUI login screen?

When I boot Fedora 19, the GUI does not start. I can start it manually, with startx, but this does not unlock my keyring, which is annoying. This problem started when I tried to move from GNOME to ...
0
votes
1answer
199 views

How should I prioritize specs for a Linux Kernel development workstation/system? [closed]

I'm working on a Linux Kernel development project (specifically OpenEmbedded/Yocto Project) in which kernel and embedded software compilation is the primary task and my laptop with a dual-core Core i7-...
-1
votes
1answer
476 views

How to allow user to input file names in bash script

I've got this script I called it "r1": for f in "$@" do fpath=`dirname "$f"` file=`basename "$f"` arc=$fpath"/"$file".rar" rar a -v1024000 -r -m0 -ep1 -o- "$arc" "$f" done It works well but I am ...
0
votes
0answers
461 views

Ubuntu hardware wireless switch has no effect after suspend and 13.10 upgrade

I'm posting this on SU after it stalled on askubuntu. I hope someone here can help! If you'd prefer to answer on AU itself, here's the link: http://askubuntu.com/questions/365177/hardware-wireless-...
1
vote
1answer
128 views

Gray Progress Bar in Macbook Boot caused by Partition Fault

Here's my problem: When I try to load my Macbook it shows the gray progress bar. It takes a while to fill the whole progress and after it Macbook just shuts down. I tried to boot from a recovery ...
0
votes
1answer
932 views

Can't ping through default gateway

I have the following configuration: Routing table on M3 is: Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.2.1 0.0.0.0 UG ...
0
votes
2answers
53 views

What is the reason partitioning is usually a step in installing multiple OS's?

What is the reason partitioning is usually a step in installing multiple (2) operating systems on the same computer? Does an operating system have to have it's own partition to run or can it run in ...
1
vote
1answer
2k views

Install Minecraft server on Centos

For the past 3 weeks, my 10 year old daughter begged me to build her a a minecraft/bukkit server, and I am attempting to do so on my on VPS running Centos6.4. I am following https://forums.bukkit.org/...
0
votes
2answers
3k views

Partition that spans multiple disks

I want to have one partition that will span multiple disks. I don't care about redundancy but in case one of the disks fails i still want to be able to access the data that is not on the damaged disk. ...
1
vote
1answer
76 views

Linux find command copy found files

I have mounted an image and have used the find command to show all file types found on the image ~/mounted $ find . -type f -exec file {} \; I know how to direct the output of the command to a .txt ...
0
votes
1answer
2k views

Linux Mint something wrong with my .bashrc

The path of my .basrc file is /home/vamsi/.bashrc It is weird that my file has nothing but the path I set. I think I am using a file at the wrong location or that I have lost my .bashrc file as ...