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
1answer
377 views

How to use 7z with variables inside a linux script?

For example: 7za e -y $file_name -o$dest_directory This works fine, when run directly from command line, but within the script it gives this error: could not find archive (No archive by that ...
2
votes
3answers
112 views

How can I browse work machines (i.e. behind a firewall) from home?

From home I would like to browse my intranet at work where I have a Linux box, which I will call "W", i.e. W.workdomain.com. My router at home closes port 22 but maps port 2222 to port 22 on my ...
0
votes
2answers
547 views

make permanant change to /sys/devices/platform/

I'm configuring my thinkpad's trckpoint using the following command: sudo echo -n 120 > /sys/devices/platform/i8042/serio1/serio2/speed sudo echo -n 255 > ...
1
vote
1answer
390 views

How to reinstall nginx from source? (was installed with apt-get)

I want to install this module. The problem is it requires that nginx is installed from source. I have it installed via apt-get install, and it is already serving web pages. So which steps would you ...
2
votes
2answers
3k views

Multiple network interfaces on Linux PC

I have a question related to multiple network interfaces on Linux PC. Suppose I have two connected network interfaces. Let us say that both network interfaces connect to LANs. Let us say one LAN ...
1
vote
1answer
81 views

How to execute a program with only explicitly allowed set of system calls using seccomp?

Linux have seccomp feature which be used to filter syscalls according to a special program. There is even dropper.c demo that allows to start programs with one syscall returning the given error. Is ...
2
votes
3answers
1k views

How to replace one line for multiple lines in a file, programatically?

I have this config file I want to edit programatically. I always use sed to make small changes, but now I need to replace 1 line for multiple lines, something like this: some code # maintenance ...
1
vote
1answer
65 views

rsync all directories that start with a specific digit

I have directory loaded with thousands of sub directories: /home/tmp/ 1 12 123 1234 2345 234 3456 345 34 ...
0
votes
1answer
148 views

subl does not open in command line

I am unable to open sublime text from the command line in my mac os. Here is what I did so far echo $PATH My path says ...
4
votes
1answer
765 views

system-wide crontab vs. user crontab to shutdown pc

I'm trying to shutdwon my pc at 2 am once a week. If I use the user crontab of root (sudo crontab -e) 30 2 * * 3 shutdown -h now the shutdown will not be performed. However, if I place the same ...
6
votes
1answer
2k views

How to add new languages to Pidgin spellchecker in Linux?

When you write a message in Pidgin, you rightclick on the input and you can choose from Languages menu in which language you write. What to do when there is no language you want in the menu (in ...
1387
votes
7answers
147k views

How do I make a machine “blank screen” for a period of time (as a penalty) if certain noise levels are reached?

My kids (4 and 5) yell a lot when playing games on the computer. I found an effective cure for this. When I hear loud noises, I ssh into the game computer and do: chvt 3; sleep 15; chvt 7 This ...
3
votes
1answer
251 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my ...
0
votes
2answers
2k views

Find pid of a certain ssh instance

There can be more than one instance of ssh running: $ ps aux | grep ssh cpn 6098 0.0 0.0 58196 2032 ? S 10:08 0:01 ssh cz -nNCTR 5433:localhost4:5432 root 6313 0.0 0.0 ...
1
vote
0answers
398 views

Apache 2.2 segfaults at restart with Phusion Passenger 3.0.19

When I restart Apache 2.2.22 prefork (as installed from Debian Testing) if the Passenger 3.0.19 module is enabled then sometimes (about 50% of the time; I can restart dozens of times with the module ...
1
vote
1answer
106 views

bg command seems not to behave

Could anyone shed some light on this matter ? [root@test1 work]# tsung -f tsung_catalin_filetrans.xml start & [2] 6284 [root@test1 work]# Starting Tsung "Log directory is: ...
1
vote
3answers
370 views

How to find files whose names contain any of 2 strings?

I'd like to find files whose name contain "Mar" or "Jun", how can I do this?
0
votes
2answers
1k views

How to install centos inside virtual box using iso image

I am using oracle virtual box manager I created the virtual hard disk In Setting -> System -> Boot order selected CD/DVD-ROM has the first priority And in storage I did this changes while ...
0
votes
4answers
161 views

File transfer via ssh to local machine

Sometimes at work I need to ssh into a local server on the command line to do some handiwork. A couple of times I've needed to copy a file onto my local machine. I can do this with the cp command ...
1
vote
0answers
64 views

Post reboot of RHEL6.3 is not working

I configured RAID 0 on IBM System X server and tried installing RHEL6.3 but after installing the packages once it reboots it wont be able to complete the installation(stuck @ grub loader each time). I ...
3
votes
2answers
821 views

Running IE and MS Office in Wine or using sandboxie

I have a friend that constantly keeps having viruses on his computer. The main problem is that he's using Windows with 2-3 antiviruses but he keeps opening unverified Powerpoint files and binaries ...
2
votes
0answers
451 views

Unrar creating files with backslashes in names instead of proper directory hierarchy

I'm working on moving the content of a website, which was provided to me in a RAR archive, to a new server. I'm not exactly sure which flavor of Linux it is; uname -a tells me: Linux bolt.sonic.net ...
1
vote
2answers
4k views

How can I install Linux Mint in a VMware Fusion VM? It fails to boot

I have downloaded linuxmint-14-kde-dvd-32bit.iso and tried to install it, selecting "Linux" and "Ubuntu" for the installation as that looked like the closest match for Mint. Upon attempting to boot, ...
1
vote
0answers
51 views

Capture slide show with recordMyDesktop

I want to record a presentation using recordMyDesktop from Linux, but when I start the capture of the slide show of presentation the movie remains on application window instead of capturing my ...
3
votes
1answer
107 views

How much RAM I could reduce [closed]

I'm renting VPS hosting where cost is based on RAM. Currently, i'm renting 4G. However, I wonder if I could reduce it to 2GB safely or even 1GB if possible. here my output of: "free -m" when server ...
3
votes
2answers
111 views

What are proxies? who stands behind them? [closed]

I'm really confused, I know , that a proxy can let you visit websites without giving out your real IP, and I've used some before to access facebook via my browser. The questions: - Who are behind ...
2
votes
0answers
108 views

Dual boot modular partitioning

I want to install linux mint 14 alongside my already installed windows 7; there is an install alongside windows 7 option but I don't know how that will partition my drive and I don't think it will ...
1
vote
1answer
264 views

Gentoo installation issues

I have decided to take the next step in learning linux and have taken on GENTOO. I am following the tutorial on this site http://negativesum.net/tech/linux/gentoo/install_guide I am currently at 11 ...
1
vote
2answers
408 views

How to execute a command under Linux after booting without a TTY session?

I'm creating a kiosk PC at the moment and I'm wondering if this is possible: When the PC is started and Linux Debian boots and I wonder if it's possible to start the command startx respectively xinit ...
1
vote
1answer
673 views

Improving small-file-performance for ZFS On Linux

I used mdadm (RAID 5) and ext4 before, I switched to ZFS On Linux (raidz) because of many reason. But when I working with small files, the performance is terrible. Only 7 MiB/s!? How do I improved ...
0
votes
0answers
286 views

wget -0 creating empty file in the file is not present

I am using wget command with the if like this: if (wget -O file) If the file is not present it creates and empty file, how can stop this from happening? What are the alternatives to remove this?
1
vote
1answer
347 views

Linux Remote Server Workspace is too busy and nonresponsive?

I have access to a remote server linux workspace, which is currently overloaded with jobs from many users and thus is not responding to any ssh request, currently we do not have any IT personnel to ...
1
vote
1answer
938 views

How can I hardreset a modem or the port under Linux?

I have a device (a modem) connected to a USB port (/dev/ttyACM0, Ubuntu 12.04) to dial a phone number, which only works if I perform the ultimate reset (taking device out of USB port, waiting some ...
3
votes
2answers
596 views

How to start a program explicitly specifying it's capabilities?

su user_name program starts some program with other uid; chroot path program starts some program with other /; ( ulimit -v 80000; program) limits program memory... How to limit program's ...
0
votes
3answers
568 views

Grant root privileges only for one directory

What is the best way to grant sudo privileges to a user only for the /opt/myapp directory as if the user were root in CentOS? The idea is to allow developers to do whatever they want only on the ...
5
votes
1answer
3k views

rsync between two local directories

I am trying to do rsync between two directories I have in two filesystems connected to the same computer. I want to do it without deleting the extra files in b. I though a simple rsync -a a/dir b/dir ...
3
votes
2answers
3k views

How to use iptables to connect proxy server

In my company, all http and https must connect to a proxy server, which means we must set proxy in our web browser. Our department has an internal network (192.168.0.xxx). I use a Linux server as ...
1
vote
1answer
6k views

How to non-interactively provide password to SCP, rsync FTP, SFTP?

How can I supply a password on the command line or in a script rather than on an interactive prompt? I need to copy files in a script and lets say public key is not copied yet to the target. OS is ...
1
vote
1answer
2k views

How to disable USB devices based on vendor ID in Linux?

I want to disable USB devices based on vendor ID in Linux, and allow only specific devices to be used. How can I do that?
3
votes
1answer
519 views

How to configure tripwire to ignore certain files?

I run tripwire daily, I wish to make tripwire --check ignore certain files and directories. How can I do it?
2
votes
2answers
1k views

Freeware alternative for Chanalyzer? [closed]

I need to analyze the channel my wifi card is operating on. I have found a program called Chanalyzer Pro, offered by metageek. However, it is not really worth it for me to buy the software if I will ...
1
vote
2answers
157 views

Linux boot parameters and hacking

Bear with me since I'm a linux noob... I had an assignment for a security class in which I was supposed to gain access to a file in on an administrator's desktop. I modified the boot settings by ...
2
votes
1answer
310 views

How to NAT a Windows PC through a Linux server?

I have to NAT a Windows PC with IP 10.10.10.10 through a Linux server with two network cards. The IP addresses of the NICs are 20.20.20.50 (connected to an external network) and 10.10.10.9. The second ...
1
vote
1answer
418 views

Passwordless connection to GitHub without EVER needing to enter a password

I cannot figure out how to connect to GitHub from my server (e.g., git pull) without ever needing to enter my password. I have followed all the passwordless setup steps as mentioned in this superuser ...
7
votes
2answers
1k views

Can I steal a vim session from another terminal?

I forgot to start screen before I started working, and now I've SSH'd into my machine from my laptop. ps -a gives me the process ID of the vim process. Can I steal the vim session from my other ...
2
votes
1answer
39 views

Medium for long-term virtualization

I purchased a Macbook Pro Retina 15in (with all the upgrades) and it is very common for me to fire up a virtual machine on it. I may need an application only designed for Windows, or I may need ...
2
votes
1answer
2k views

grub-install gives an error message I don't understand

I'm new to Linux, am using CentOS 6.3, and am attempting to install CentOS 5.8 ISO to a pen drive following instructions from here. My pen drive is /dev/sda and partition 1 is vfat. It's mounted on ...
3
votes
4answers
67 views

How to find out what files will be installed in the filesystem when installing a package with aptitude?

In my case I want to do aptitude install wireless-tools but want to know which files will be installed and where in the filesystem before I install the package.
0
votes
1answer
194 views

grub-install gives error message I don't understand [duplicate]

Possible Duplicate: grub-install gives an error message I don’t understand I'm new to Linux, am using CentOS 6.3, and am attempting to install CentOS 5.8 ISO to a pen-drive following ...
1
vote
1answer
2k views

ejabberd runs on command, but not via service / ejabberdctl

I have ejabberd set up, and if I run ejabberd via command line, it executes fine, I can connect, chat with other people, etc. When I run service ejabberd start everything executes properly, but ...