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
47 views

open port for memcached in network

I want to share my memcached instance in my network. What is the best way to do this to give the network access to it? How I open the port for it? Is there some easy way? Thanks for helping
0
votes
1answer
154 views

Strange character instead of arrow in Linux Chrome New tab page

I'm using Google Chrome dev channel on Linux. Recent update to 29.0.1521.3 breaks the little arrow on page switcher (at the left or right of the new tab page), instead there's some weird strange ...
0
votes
1answer
281 views

How to extract a record in a text on string match in a file using Bash

I have a text file sample.txt as: =====record1 title:javabook price:$120 author:john path:d: =====record2 title:.netbook author:paul path:f: =====record3 author:john title:phpbook subject:php path:f: ...
9
votes
3answers
40k views

How do I reactivate my MDADM RAID5 array?

I've just moved house which involved dismantling my server and re-connecting it. Since doing so, one of my MDADM RAID5 arrays is appearing as inactive: root@mserver:/tmp# cat /proc/mdstat ...
2
votes
1answer
94 views

Return from standby mode opens grub

After installing Windows 8 and Arch Linux as dual boot everything worked pretty well. However if I happen to close my laptop lid while in Win8 (the comp goes to standby mode) and then reopen my ...
1
vote
2answers
4k views

how to remove a screen (detached sessions) in unix?

I have been working in different screen sessions in past projects , hence have a few screen sessions accumulated. Now i have been asked to remove excess/unrequired screen sessions from the unix box. ...
1
vote
2answers
135 views

How to ssh as user X and invoke a command as user Y through a single SSH command line?

I can only signon a system as a specific X, using ssh. I want to create an ssh command that allows me to invoke a script on a specific server, but such script needs to be executed as ROOT user. ssh ...
2
votes
1answer
2k views

How do I install/make a custom prompt for fish shell?

I'm using fish 2.0 in #! Linux, but this might be an installation error, since my ~/.config/fish/config.fish is empty.
0
votes
0answers
241 views

openvpn interface, local routing and linux kernel routing table

from this article: http://backreference.org/2010/03/26/tuntap-interface-tutorial/ the author created a tun interface # openvpn --mktun --dev tun2 # ip link set tun2 up # ip addr add 10.0.0.1/24 dev ...
4
votes
1answer
4k views

openvpn usage: how to modify ip address and how to remove a tun interface?

I used openvpn to create a tun interface on linux openvpn --mktun --dev tun2 ip link set tun2 up ip addr add 10.0.0.2/24 dev tun2 now I want to modify the ip address to 10.0.0.1/16, how to do it? ...
0
votes
0answers
319 views

Can't find /dev/root

I am having hardware issues with my main laptop, so until I get it fixed I am trying to use its hard drive on my old laptop. I am using a SATA-USB converter to boot on it. The problem is when I try ...
0
votes
2answers
634 views

Serial Number of Harddisk connected through usb

There is a dock station in which I have put a hard drive. The dock station is connected through USB, but there is no command in linux which gives me serial number of harddrive connected through USB ? ...
5
votes
1answer
13k views

How can I view the video camera stream from my DVR?

I have a HANBANG HB7008KC DVR. It comes with a Windows IE ActiveX software to view the cameras. They don't support Linux. I have a Linux machine and i want to connect to the DVR. I use DvrSeeSee App ...
7
votes
1answer
5k views

Install public key via ssh-copy-id for other users

ssh-copy-id can be used to install your public key in a remote machine's authorized_keys. Could the same command be used to install other users' public keys, if you have sudo ability? Update: both ...
0
votes
1answer
5k views

CentOS 6.4 server no internet connection

I just installed CentOS 6.4 on my server. I've tried running sudo yum update and got the output Could not retrieve mirrorlist...snip...error was 14: PYCURL ERROR 6 - "Couldn't resolve host ...
1
vote
1answer
5k views

Best file system to share between Linux, Mac, and Windows [duplicate]

I would like to put all my movies on an external harddrive so that I can watch them on any of my various computers (Mac, Linux, PC: all latest OSs, all 64-bit), and I would also like to be able to ...
0
votes
1answer
102 views

Is there a way to find all processes which accessed a linux port?

We are using Octopus Load Balancer for connecting to database from Linux. The Load balancer throws following error. I doubt if it is due to the assigned port being accessed by some other process ...
2
votes
1answer
189 views

SSH file transfers using ssh-keygen

I am a casual linux user but I am having a some difficulty understanding some directions sent to me from a company we provide data to. They want us to use ssh (which I have used before) to transfer ...
1
vote
0answers
390 views

LXDE .desktop files - How to make StartupNotify option working?

As stated in the documentation of LXDE, the option StartupNotify=true placed in a .desktop file, should provide some busy mouse cursor (hourglass or similar) in order to indicate that the application ...
0
votes
1answer
151 views

Could SSH client connect to SSHServer and create user if not exists?

My question is the next, Could I create users in server (on sshd), when ssh client connect to the server and in this moment create account in server with a spectific group and permissions for this ...
5
votes
3answers
8k views

Unzipping file whilst getting correct permissions?

I unzipped a file on my server using: unzip filename However this seems to have caused all the files having owner/group permissions of 0 0. The files I uploaded were a PHP software script, so I'm ...
2
votes
1answer
512 views

add ntfs-3g to tinycore live usb without internet access

How can I add the package ntfs-3g to an existing live usb drive without having access to internet. I want to somehow download it and put it on the usb drive and install it though the terminal when the ...
0
votes
2answers
361 views

Linux: Should off-site backups be stored in ext3 or ext4?

We have been using ext3 for Linux server off-site backups. With everything else on CentOS 6 being ext4, I'm wondering if it would be a better idea to also have the off-site backups in ext4 too? The ...
0
votes
1answer
432 views

grub-mkrescue not producing bootable image

I'm trying to use the grub-mkrescue command to produce a rescue disk. I invoke it like this: grub-mkrescue -o grub.iso This produces the .iso file, but when I try to boot from it using VirtualBox, ...
0
votes
1answer
364 views

Custom icons for the different mime-types in LXDE/PCManFM (open desktop)

I want to create new mime-type (text/something) for some kind of files. I know how to make it, but I don't know how to make the file manager to display different icons for these file types? I am ...
0
votes
2answers
149 views

Is it possible to tar two different files at the same time?

I need to tar two different directories at the same time. Is it possible to execute two instances of tar in parallel?
0
votes
0answers
263 views

lost files on cut/paste to hard drive

Last night, I mounted the main hard disk in Linux Mint 14. And cut/paste a lot of files (about 8GB) from home folder to the mounted disk. When the operation finished, I suspend my computer, and a few ...
5
votes
1answer
527 views

Linux shows several folders with the exact same name

I recently used a mac to copy several files and folders to a USB drive (ext4 through ExtFS), and now in Linux (Xbian) two folders in the root of the drive are shown four times. The output of "ls ...
2
votes
2answers
1k views

what is -z option in test command(linux)

In one of my lab tutorial there was a command to be checked. test -z $LOGNAME || echo Logname is not defined when I execute this command the output is "Logname is not defined". Man page for test ...
0
votes
2answers
372 views

How To Get Windows To Stop Assuming Precedence Over GRUB?

I have a SATA hard drive with an MS DOS MBR partition table, an ext4 Linux-based OS, an NTFS Windows 7, and an extended partition. I was happily using my ext4 partition for quite some time, but grew ...
3
votes
3answers
1k views

Encrypt on Solaris, decrypt on Linux

I have encrypted a file on a Solaris server using the encrypt command, with a keyfile generated via pktool (choosing AES-128 as the algorithm). I do not have access to any other encryption utilities ...
0
votes
1answer
164 views

How create an account for myself as administrator (sudo)

I have sudoer root access and would like to create one new admin account for myself and one regular account without full access! on the command line I can use $ adduser USERID I tried $ visudo and ...
0
votes
1answer
152 views

VirtualBox resize disk not taking effect

I am trying to increase the size of my /dev/sda1 (boot) following this tutorial I am able to execute the following command successfully: VBoxManage.exe modifyhd ubuntu.vdi –-resize 40000 and when ...
0
votes
1answer
1k views

How to open an application in running X session [duplicate]

Is there any way to do that? Provided I have ssh access to a machine and I have root on the machine. Can I run xclock for instance in the currently running X (xfce or gnome) session?
7
votes
5answers
12k views

How to get the actual directory size (out of du)?

How do I get the actual directory size, using UNIX/Linux standard tools? Alternative question: How do I get du to show me the actual directory size (not disk usage)? Since people seem to have ...
3
votes
2answers
2k views

LINUX Ping host, Display error on failure

I'm writing a bash script to ping a given hostname, and display whether or not the host is active (display a simple message.) Should be easy, but headache instead. Here is what I have so far: ...
2
votes
3answers
454 views

How to make zsh completion like bash

I am using zsh. It is a nice shell, especially for the auto completion function. But, when I press tab, it always auto fill with the first completion option. For example, there are two files in my ...
0
votes
1answer
10k views

Kali Linux and Windows 8: Switching MBR to GRUB

I'm trying to install Kali Linux (amd64) alongside Windows 8 (x64). I have prepared suitable free disk space (the second and third partition were formated to ext4 (the first, the primary, NTFS)), and ...
1
vote
1answer
2k views

How could I portably split large backup files over multiple discs?

Context: I make backups / archives, primarily of photos. I'm experimenting with Bup, which is designed for backup to hard disk. Basically it creates Git repos which include packfiles of up to 1GB. ...
1
vote
1answer
1k views

How to configure SAPRFC with PHP

I am trying to configuring SAPRFC with PHP but it's fail, I tried from many ways and also referred too many links using google search but not found solution on the same, So if anyone have configured ...
1
vote
1answer
256 views

How to route specific destination using specific interface

On my server i have two interfaces; one is eth0, other is bond0. Unfortunately eth0 is only 100 mbits, opposed to bond0 which is 1000 mbits. eth0 is 10.0.0.21 gw 10.0.0.1 bond0 is 10.0.0.22 gw ...
3
votes
1answer
2k views

symbolic link to /usr/local/bin not running the program unless logged in as su

I'm trying to get eclipse 3.8 installed on Ubuntu 10.04. I've put the extracted files on: /opt I put a symbolic link in: /usr/local/bin ls -s /usr/local/bin: eclipse -> /opt/eclipse/eclipse ...
2
votes
1answer
974 views

Ubuntu RFID Screensaver lock-unlock

So, I have this el-cheapo RFID scanner and some RFID tags. I thought to myself, You know what would be neat? Enabling and disabling the lock screen with this thing. So the package arrived and I tore ...
0
votes
3answers
4k views

How to run bootable media on Asus S550CM ultrabook while preserving existing pre-installed Windows 8?

I recently bought an Asus S550CM ultrabook with Windows 8 pre-installed on it. However, I need to also install Fedora 19 beta on the same machine simultaneously as a dual boot option for my work, ...
2
votes
0answers
349 views

Making sysvinit load EVERYTHING in parallel - why does this even work?

I edited /etc/init.d/rc on my Debian machine and changed startup boot to startup boot &. Boot time decreases ridiculously, and no race conditions happen at all. Way faster than even Systemd (which ...
1
vote
2answers
5k views

Zip many files into several archives

Running Linux. I have a directory of around 150 large CSV files; simply doing a zip -9 on them results in a monolithic file that is still too large. I would like it to simply zip them in maybe four or ...
0
votes
2answers
577 views

Beep in headphone when usb-mouse is plugged in or moved

I have installed debian (wheezy) on my laptop. Previous OS was ubuntu. I get a beep each time I plug in my (wired) USB mouse and every time I move it. An older wired USB mouse does not have this ...
4
votes
1answer
2k views

google speech recognition offline linux

When I was doing some research on speech recognition, I saw some articles about the google speech recognition service on android being able to be downloaded and used offline on android. I also saw ...
0
votes
0answers
637 views

Install Php-pear to /usr/share Raspbian (debian)

I am running Raspbian on my Pi and have installed PHP-pear, I have some software that requires PHP-pear but is normally installed on a Fedora based machine so pear is normally found at /usr/share/pear ...
6
votes
2answers
8k views

How to use Latest Python 2.7.x “The Right Way” on Ubuntu 12.04 LTS?

My project needs to stay current on Python releases, but 12.04LTS is currently stuck on 2.7.3, even though 2.7.5 is out now. Is there a way I can stay more current without manually compiling? We're ...