1
vote
1answer
91 views

log into a machine through another, with (de)compression at the ends only [duplicate]

I have looked all around but couldn't find the answer to a very simply question: I would like to log into machine C from machine A, passing through machine B. However, B is slow, so I would also like ...
1
vote
2answers
316 views

How to notice log file changes with Linux standard tools? [duplicate]

I need something that does not need to be installed. It's on an embedded system with very little space on the HD. I can't instal anything. I need to do it with something that is already included. I ...
1
vote
1answer
578 views

Recovering truncated file

I'm in a peculiar situation. While editing a Perl program I accidentally truncated the file to zero length (using an Emacs lisp code I was developing). I need to recover that program... How do I that ...
1
vote
1answer
414 views

kdb5_ldap_util fails with cryptic error

Supposedly, in order to set up Kerberos, I need to run kdb5_ldap_util, though I'm not sure why. However, it fails with: # kdb5_ldap_util -D cn=admin,dc=example,dc=com create -subtrees ...
1
vote
2answers
1k views

Installing ruby 2.1 on Arch via RVM

I have problems installing ruby 2.1.0 via RVM on Arch. My vagrant provisioning file looks like this: sudo pacman -Syu --noconfirm sudo pacman -S --needed base-devel --noconfirm sudo pacman -S vim ...
1
vote
3answers
3k views

Run Linux “motion” app as user

I'm trying to run Motion app on a Linux box. For various security reasons, I'd rather run it as regular user than sudo. However, when I run "service motion start" without the sudo in front, it says: ...
1
vote
2answers
14k views

mounting iso image: message “block device is write protected, mounting read-only”! [duplicate]

I want to delete a few files from my iso image on hard disk. So, I did: ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo mount -o loop check_bholua99.iso ...
1
vote
3answers
5k views

New local user can't login to vsftpd

I'm a bit puzzled with this one and could really use some help. We have a CentOS 6 box running VSFTPD as a dropbox for our customers. Each customer gets a local user and is chrooted to their home ...
1
vote
0answers
73 views

How to send packets coming from a second router on a particular port back to the router, using iptables not a route

I have a Linux server which runs a particular service listening on a single TCP port. The Linux server connects to the internet using a PPP connection and also acts as router for a local network using ...
1
vote
1answer
9k views

How would you install the RTS5139 Card Reader driver for use on Fedora 19

Is it possible to install the rts5139 driver in Fedora 19 3.11.8-200.fc19.i686.PAE kernel ? I have a Lenovo G570 laptop, on which I run Fedora 19 (3.11.8-200.fc19.i686.PAE kernel) on one hard disk, ...
1
vote
1answer
364 views

what is a Kernel? [closed]

I'm learning Unix from the Unix Architecture book by Maurice J Bach. So if my question seems too stupid, please do bear with it. I read a few related questions but I would like a more simple ...
1
vote
0answers
2k views

All USB ports detected as USB 1.0, not USB 2.0

My Ubuntu 13.10 server (Upgraded from 11.10) has always had an issue with mounting USB 2.0 devices. Despite legacy being turned off on the motherboard bios, the output of lsusb -t always shows the ...
1
vote
1answer
296 views

Print dialog crashes, any workaround?

At work, where there are dozens of printers on the network, I'm no longer able to open the print dialog (the Gnome/Gtk one opened by firefox, evince, gedit, etc.). This happened one day with no ...
1
vote
1answer
16k views

Modify 'Soft Limit' of 'Max processes'

I tried ulimit -u 2000 and ulimit -Su 2000 to modify the 'Max processes', and started up my program, but failed. I found file '/proc/pid/limit' is still: Max processes 1024 ...
1
vote
1answer
7k views

Configure power button to shutdown on Debian

I use Debian and I want my power button to shutdown the PC. Currently it sleeps, when I press it. Is there any command for it to make it shutdown?
1
vote
1answer
4k views

/dev/console dynamic redirection

Is it possible to dynamically redirect all data sent to /dev/console into something else (for example - to /dev/null, /dev/tty9 or even /dev/null)? Of course, it can be done statically via ...
1
vote
2answers
448 views

Execution of a command in a variable with eval

I am trying to use grep to color some log files . I wrote a script and a part of it looks like this : #!/bin/bash com="GREP_COLOR=\"1;36\" egrep --color=always '[^a-zA-Z0-9]' $log |less -R" ...
1
vote
1answer
3k views

How to see invisible items in Elementary OS Luna?

Nautilus is not the file manager anymore in Elementary OS Luna - or it has change name to Pantheon-files. Cannot find its settings. How to see invisible items?
1
vote
2answers
2k views

The command ` ls -ltu ` fails to list folders/files based on last accessed time

First on your linux desktop create 2 folders. a b Now run this in the terminal ls -ltu the result is drwxr-xr-x 2 root root 4096 Aug 30 20:33 b drwxr-xr-x 2 root root 4096 Aug 30 20:33 a ...
1
vote
1answer
327 views

How do I modify this Perl solution so that it will substitute embedded double quotes with single quotes?

Previously in this question: "string having doublequotes in between apart from the enclosing quotes" @BernieReiter asked a follow-up question where he wanted to take CSV entries such as the following: ...
1
vote
1answer
1k views

audio recording - record two sources simultaneously, merge into a single 2-track recording

How can I record two audio sources at the same time and create a file where one source is the left channel and the other source is the right channel of a lossless stereo audio recording? My distro ...
1
vote
2answers
258 views

Cloning USB drive in VMware with partclone

I created a virtual machine in VMware as follows: SCSI HDD 1 GB (Main for short) SCSI HDD 0.8 GB (UClone for short) SCSI HDD 4 GB as a physically plugged UFD (Uphys for short) Arch Linux ISO as ...
1
vote
2answers
13k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
1
vote
2answers
19k views

How do I process ifconfig output to determine my link speed?

Here's script I wrote out of boredom, for download speed test: #!/bin/bash get_ispeed() { echo $(ifconfig eth0 | grep bytes | grep RX | cut -d ':' -f 2 | cut -d ' ' -f 1); } for((;;)); do ...
1
vote
1answer
623 views

grep curly-bracketed entries from text file

I have a file with many curly bracketed words, ex. {test1}, {test2} - how would I grep for these words and output a distinct list of them? output example: {test1} {test2} I've tried this which ...
1
vote
3answers
2k views

Make web project writable by apache and other user

I am running ubuntu 12.04 LTS . To be able to view my web project in the browser I did the following: chown -R www-data:www-data /var/www/project Now I wanted to open the project in netbeans but it ...
1
vote
1answer
2k views

Running program as root without using sudo with normal user account

Is there a way to force to run program as root (with normal user) when there's no sudo on the machine (and can't be added)?
1
vote
1answer
478 views

RDP only Operating System

I am looking for an operating system where the login screen asks for a username and password for an rdp login prompt. I want an administrator to also be able to login to change the i.p. address for ...
1
vote
0answers
760 views

VMWare tools on arch linux

I have a arch linux installed on a vmware player virtual machine. I'm trying to install the open-vmware-tools. I have already installed but it is not working and everytime I boot the system I get the ...
1
vote
1answer
983 views

How can I replace my keyboard and mouse udev rules with xorg.conf.d?

Since it is impossible to make udev rules that affect Xorg settings run on startup, I'd like to replace these with other alternatives. At the moment, I have two primary udev scripts that I've written. ...
1
vote
1answer
1k views

How can I create an encrypted, file-system–agnostic, mountable volume?

At work, we have an iMac (running OS X) that shares a partitioned hard drive over the network. I'd like to back up to my partition from my Linux machine. I've attempted connecting via cifs, then ...
1
vote
1answer
6k views

Problem compiling a driver : “No rule to make target”

First of all I am running a CentOS 6.4 installation. My computer is a laptop and I am trying to install the drivers for my ethernet card, because this week end I lost my ability to connect to the ...
1
vote
1answer
1k views

Safe to change owner of OS X system folders?

I'm trying to get Homebrew to work. That program's diagnosis tool gives me these suggestions: You should probably chown /usr/local/etc ... You should probably chown them: ...
1
vote
2answers
467 views

Changing username but not home directory

Is it a bad idea to do usermod -l login-name old-name to change my username while leaving my home directory name intact? A few years ago my university changed my username, but since it didn't affect ...
1
vote
0answers
518 views

How to add my own created certificate authority to system trusted repositories

I was told that I can add my created CA to trusted repositories/authorities in my system instead of adding it from browser and configuring in in ssl.conf. Yet I can't find anything similar on the ...
1
vote
0answers
103 views

Decreasing mouse sensitivity at kernel level

I have developed a custom-GUI Server, which runs on virtual console of Linux.For mouse-handling purpose, it reads the mouse device file /dev/input/mice and retrieves the event data and updates ...
1
vote
1answer
773 views

What's the best way to have a 169.254.169.254 address local to my laptop?

I want to emulate the Amazon EC2 metadata service on my local system for testing. In EC2, this runs on 169.254.169.254. I understand that this is the designated range for pseudorandom local addresses ...
1
vote
2answers
8k views

How do I resize a disk image device?

I'm trying to reduce the size of a backup drive image. Original disk had these partitions: Model: ST916082 1A (scsi) Disk /dev/sde: 160GB Sector size (logical/physical): 512B/512B Partition Table: ...
1
vote
1answer
4k views

Failed to get bus connection: Could not connect: Connection refused

When I'm running evince file.pdf I got this error Failed to get bus connection: Could not connect: Connection refused Ubuntu 12.04 I have to reboot. Can I repair this error without reboot?
1
vote
1answer
1k views

Window buttons (minimize, maximaze, close) are not visible in Xfce

Everytime I start my laptop my GUI is "broken" - windows don't have the top border with close, minimize and maximize buttons. I know I can run xfwm4 --daemon but it is really bothering to do that on ...
1
vote
1answer
4k views

What is the correct way of setting up a Squid Proxy in front of wireless router

We are a small office of 20 users. Our current network is like below. We have a static IP on the Wireless Router's WAN port. Local network <-> Wireless Router <-> Cable Internet I want ...
1
vote
3answers
2k views

How to mount multiple partitions

Is there a way to mount multiple partitions, or even all partitions, of a disk with a single command in Linux? Is there, perhaps, an option that the mount command accepts that would facilitate this? ...
1
vote
1answer
6k views

How to authenticate a user with PAM, that is not the user that started the application

I'm currently developing an authentication module for an application. The decision was made to do this by using PAM. I have made this work but it can only authenticate the user that started the ...
1
vote
2answers
876 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
1
vote
1answer
317 views

What is the proper use of the term 'session'?

[I hesitated whether to post this in meta or here. But although this involves terminology, it is of general use, not only on this website.] It looks like at least in Xfce 4.10 (with the session ...
1
vote
3answers
6k views

How to solve window manager problem in Linux Mint 14 Xfce after installing LXDE?

I like the way Xfce works on top of Linux Mint 14 Nadia (Quantal) - but I also like LXDE that I want to have in parallel. Mint 14 has no LXDE "version" now, and that is too bad. I heard that ...
1
vote
0answers
43 views

What is a “theme” in Xfce? [duplicate]

I have only used LXDE and Xfce. While in LXDE windows styles (decorations) and general appearance themes ("Widgets" in LXDE) can be clearly differentiated when searched on the internet, for Xfce they ...
1
vote
0answers
640 views

Kill and resume a rsnapshot backup properly

Suppose that after starting a rsnapshot backup on my laptop I notice that it will take too long time and that I have to shutdown the laptop in a few minutes. Is there a way to quit rsnapshot without ...
1
vote
1answer
2k views

Guide to installing Xen on CentOS 5.9 (That is still valid)

I need an idiots guide to installing Xen Hypervisor on CentOS 5.9 We attempted to install it on 6.3 before, but completely failed, so we reverted to 5.9 to see if we had more luck. We had issues ...
1
vote
1answer
1k views

rsync command to backup home tree to another disk

I want to make sure I am using the correct rsync command on Linux. I do not want to run an rsync and end up losing data as I am new to Linux and I have no backup now. On Linux Mint, I want to backup ...

15 30 50 per page