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

2
votes
1answer
72 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
98 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 ...
0
votes
0answers
233 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 ...
2
votes
1answer
715 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
0answers
205 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
2k 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
2answers
477 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
2answers
198 views

How do I prevent all console access except via key-authenticated SSH?

I have a server environment for which the only methods of login would be SSH or local terminal in the datacenter. I have set this up to allow a specific user to login only with a key, not password ...
0
votes
1answer
658 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?
0
votes
1answer
91 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 ...
1
vote
1answer
4k 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 ...
2
votes
1answer
147 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
299 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 ...
11
votes
4answers
31k views

how to check if NTP adjusted system time on Linux?

I have a machine that experienced some troubles with some of the real time stuff that I'm running. One lead that I have is that NTP daemon may have moved the time, causing false timeouts. How do I ...
2
votes
2answers
690 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 ...
2
votes
1answer
364 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
1answer
101 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 ...
0
votes
2answers
301 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 ...
3
votes
2answers
4k 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. I files I uploaded was a PHP software script, so ...
0
votes
2answers
116 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
1answer
252 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, ...
2
votes
3answers
351 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
0answers
192 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 ...
2
votes
2answers
561 views

Ejecting SATA device in Linux

How to eject SATA device properly in Linux? I know eject command can do it for usb device: eject usbDevicePath Does it work same way for SATA devices? Will it sync caches, and properly power down ...
9
votes
4answers
26k views

How to send email with attachment by postfix from command-line?

I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix. I am trying to figure ...
0
votes
1answer
126 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
145 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
2answers
27 views

short domain to point to parent domain

I have two domains, for example: md.com mydomain.com I want first domain to go to same website as second domain. I want first domain to be a shorter domain like other websites have. My question ...
7
votes
3answers
5k views

What could cause strange characters in Vim?

I'm have this really strange problem in Vim using the NERD tree plugin, where, as you can see in the picture, the characters are showing up very strange. Where there is the ahat, ~V 3/4 it should be ...
0
votes
2answers
456 views

Why does dd copy slower with really small and really big block sizes?

I have realized that if I use really small block sizes, the dd copy is slower, but if I use really big block sizes, it also is slow. I have found that 1M is optimum. Why is this?
15
votes
12answers
9k views

How to remove iso 9660 from USB?

I have somehow managed to write an iso 9660 image onto my USB drive, which makes all my computer think that the device is actually a CD. I have tried various methods of removing this partition, but ...
3
votes
2answers
1k 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
2answers
2k views

Running .sh file CentOS6

I have a script for installing a program. https://github.com/mkonecny/airtime_centos/blob/master/centos.sh When I try to run it I get: 64-bit installer only LANG=en_US.UTF-8 install/uninstall ...
1
vote
1answer
138 views

User belongs to different groups when logging in via control alt F1 than via ssh or su, including su -

Made a guest account for a friend to access my machine and restricted him to a very small set of permissions. That seems to work as expected using ssh, when running id and groupsthe correct groups are ...
0
votes
2answers
2k 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
1answer
3k views

How to add LDAP user to existing local group in RHEL?

I'm attempting to add some of our LDAP users to a locally defined group on our RHEL server, however I get an error stating that the LDAP user is not found in /etc/passwd. What would be the best way ...
3
votes
1answer
430 views

Setting up a shared folder in Linux

I'm trying to set up a folder in my home directory that will be shared with another user, but I can't get it to work. This is what I've done: I have tried two different ways using ACL's and ...
3
votes
2answers
1k views

Linux - Debian - Original groups that a user is in

This is embarrassing; I used the usermod command to add myself to the disk group. However I forgot to use the append option! so I'm not a member of any of the groups that I was originally, now ...
2
votes
1answer
79 views

Setting the group of a Unix process

When I run: ps -e -o pid,user,group I see that processes have users and groups (among other properties). How can I as a user influence the group assignment to the processes that I start? In other ...
1
vote
1answer
174 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 ...
19
votes
2answers
2k views

Linux Mint doesn't boot after creating a swap partition

When I was creating my Linux hard drive, I skipped creating a swap partition, thinking that 4GB would be enough RAM. Now, I think I do need a swap partition. I asked some people on IRC how to do this, ...
-3
votes
1answer
64 views

Is desktop pc support ssd and sata hard disk in one machine? [closed]

Is it possible to connect a solid state disk (SSD) to a system running RHEL Server 5.5. It has a Intel dual core 3 GHz processor and my motherboard has 6 sata ports.Can i connect one SSD hard disk ...
1
vote
1answer
2k views

PuTTY - Display whole server output (screen command)

I am using PuTTY to administrate a Minecraft server on a remote Linux machine. I do not own the server but I have an SSH account. The server has a console window which can be accessed with the screen ...
2
votes
0answers
253 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 ...
0
votes
0answers
450 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 ...
2
votes
3answers
4k views

Why there is only one Default Gateway?

I am novice in networking trying to figure how multiple network interfaces work. My doubt is when there are two or more NIC's on a machine, what is the meaning of default gateway present in the ...
0
votes
0answers
2k views

linux kworker's CPU percentage extremely high

I have a laptop with i7 processor and ATI video card, all the distros I'v installed have a common problem -- there is always a kworker(kernel thread) occupy 40% of the CPU, (i.e. one of the 8 logical ...
-1
votes
1answer
50 views

setting an appropriate PATH for one user

I'm new to linux, and am taking a course that requires me to do the following: Creating a login name Establishing appropriate group(s) Creating the home directory Creating the login shell ...
0
votes
2answers
193 views

Can I automount /etc on a different partition?

This seems like a chicken-and-egg problem. Inside the /etc/fstab file on the root partition, can I specify a different partition to mount at the /etc mount-point, such as: /dev/sda6 /etc defaults ...
4
votes
3answers
5k views

SSH bookmark manager for Linux

I have used JellyfiSSH on Mac OSX which basically stores your ssh connection details so you can quickly open connections using the built in SSH client to various servers without having to type in all ...