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

3
votes
3answers
5k views

Rsync print only files that would have been changed

Is there a way to get rsync to print the full filepaths to all files that are different without actually transferring any files? Alternatively, I need a way to diff the files across two trees (over ...
16
votes
6answers
25k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
5
votes
2answers
2k views

Make pacman does not reinstall when already installed

How to make pacman (archlinux's package manager) to not reinstall when the package already installed pacman -S packagename # install and reinstall if exists
0
votes
0answers
14 views

accessing outside my network through a server

I have: A user-machine (embedded device where I can't log in to console or ssh) , that doesn't have access to lan 192.168.5.x B a server debian that sees the A's network , but is in 192.168.1.x ...
1
vote
0answers
8 views

“sudo dpkg-reconfigure keyboard-configuration” settings forgotten after reboot

I'm currently running on an Ubuntu 15.04 machine, and I've been attempting to set my Left Caps Lock Key as my Control Key. After following numerous ways of doing this, I've attempted the above ...
0
votes
1answer
15 views

Shell script to pass multiple arguments with options in command line

I have the script, I need to execute this script like this: ./create_endpoint.sh --controller-ip 10.20.20.1 --controller-name User1. But its executing like this: ./create_endpoint.sh 10.20.20.1 ...
3
votes
2answers
178 views

Tail -f on files that don't exist yet

I have a program that for each run generates a new log file. To watch what's going on, I'd like to tail -f the log - only problem is that I don't actually know the file name in advance. So, is there ...
0
votes
0answers
3 views

Grub2 on msdos table partition won't load

my laptop has: 500gb hdd /dev/sda 22gb sdd /dev/sdb I used to boot archlinux from a small ext2 partition on /dev/sda. The bios is set to use BIOS mode (not uefi), secure boot is disabled, AHCI is ...
0
votes
2answers
28 views

Accessing shell variables inside 'sudo' block : export doesn't work

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
3
votes
1answer
3k views

Attempting to access RAM /dev/mem… says “Operation not permitted”

I am using Ubuntu 12.04 I read the following tutorial on how to access the contents of RAM in Linux.... http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/ Code: dd ...
1
vote
1answer
33 views

How to save two IPS in single network card

I am using centos 6.6 and going to configure single network card with two IP address. My configuration look like this /etc/sysconfig/network-scripts ifcfg-eth0 DEVICE="eth0" BOOTPROTO="dhcp" ...
0
votes
2answers
17 views

Getting controller to work on second x-server

I am using Linux Mint 17 with Cinnamon as my primary WM. I want to run Steam in a separate x-server for better fullscreen performance and because unredirect doesn't work properly in Cinnamon and ...
0
votes
2answers
34 views

ipTables, how to block all services requests on port 80 for an IP?

On a linux server/router, I want to block port 80 only for one IP (example : 1.2.3.4 ) I have been given this example : ### Block Incoming Port Requests (BLOCK PORT) # To block port 80 only for an ip ...
0
votes
0answers
9 views

Create partitions using fdisk/gdisk using linux

I am trying to Install Xubuntu alongside Windows 8. I have two Windows part C: and D: . I want to install Xubuntu in between them, so I shrunk C: (using windows Disk management) and created ...
1
vote
0answers
33 views

Unresolvable broken dependencies, none of 'apt-get' commands works

Before I explain the problem, I should say that I have tried all other answers to similar questions and troubleshootings around the Internet, and none of them works. To be more specific all apt-get ...
3
votes
1answer
3k views

Two parts: linux startup script to connect to bluetooth and cron to keep it connected

I have a mini bluetooth keyboard and a Raspberry Pi running a Debian-based distro. I know the MAC address of the keyboard but for this question, let's just use AA:BB:CC:DD:EE:FF. Right now I have to ...
4
votes
2answers
3k views

Fedora 18 Disable Hibernate and Suspend

I recently installed the new Fedora 18, LXDE spin on a workstation (not a laptop). I want to disable the hibernate and suspend functions, and remove them from the "Logout" menu in the UI. In F17 and ...
0
votes
0answers
19 views

Fast disk encryption on Raspberry Pi

I need to have a trivially encrypted disk on my Raspberry-based server. As far as I know, Raspberry Pi doesn't have any hardware AES encryption. That means, the standard disk encryptions are awfully ...
0
votes
0answers
13 views

How can I find why a port is used in Ubuntu Server? [duplicate]

I recently installed Kamailio 4.0.4 on Ubuntu Server 14.04. After first run. 0(5400) ERROR: <core> [tcp_main.c:2932]: tcp_init(): ERROR: tcp_init: bind(a, 0x7fb5b0783344, 16) on 127.0.0.1:5060 ...
1
vote
0answers
10 views

How would I configure a dedicated server only to be accessible via vpn

I have a server inside my lan. It runs owncloud and some applications for development purposes: docker, wildfly, tomcat, samba ... My workflow: I use a openvpn appliance to get inside my lan and then ...
0
votes
0answers
12 views

Supermicro server with 2 PSU and 24x1TB [on hold]

we have several superciro servers, had 2 PSU and 24x1T SAS disk, when shut 1 PSU and always had serveral HDD failure. Any idea to how to find out the really problem? Thanks
5
votes
1answer
331 views

Most efficient way of taking a subset of lines

I have two files. One huge one (200.000+ lines) called 'db' and one big one (15.000+ lines) called 'indices'. What is the quickest way of filtering out the lines in 'db' containing any index ...
0
votes
2answers
21 views

Curl post form and get result

I found this website http://www.fonefinder.net/findome.php , that locates phone provider by number (ex: http://www.fonefinder.net/findome.php?npa=562&nxx=866&thoublock=1666) shows VERIZON ...
0
votes
0answers
10 views

Boot fully encrypted Windows 8+ with GRUB without password using keyfile

I have a current setup so that my entire linux (including /boot) is encrypted and when I first start grub a password is needed to access /boot from my linux partition. But my entire windows partition ...
3
votes
2answers
3k views

Slow internet using Arch Linux

After a week or so of using Arch Linux I cant access the Internet. It takes around 5 mins to load Google (most of the other websites just give me a timeout), pacman’s downloading speed range between ...
0
votes
1answer
2k views

OpenVPN on Debian 6 failed to start

I configured openvpn on my Deabian 6 VPS (using OpenVZ) several times but always stuck on "Starting virtual private network daemon: client server failed!" The syslog indicates, that there seems to be ...
-2
votes
0answers
20 views

How to get total records affected in database: A shell script

I have written a shell script to update the records on database server. The query.sql file contains variable number(almost 600 to 800)of insert queries. As I am running the script, it runs fine and ...
0
votes
0answers
13 views

Wi-Fi signal strength in OpenWRT

Is there a way to retrieve signal strengths on all the devices connected in a wireless network in OpenWRT? I want to check signal strength of devices connected to the router. My router has OpenWRT ...
1
vote
1answer
164 views

Why does i3 Window Manager make a blank section?

Once in a while, my i3 Window Manager makes a blank tile that only shows the desktop background. I don't know what causes this. Maybe it's a keystroke I am inadvertently making. It ruins the whole ...
0
votes
1answer
3k views

With Centos 7 as a Virtualbox guest on a Mac Host, how can I change the screen resolution of the console / command line?

I am using the minimum install of CentOS 7 with command line access only (no graphic support installed). After spending hours reading online about editing grub files, installing guest additions, and ...
1
vote
1answer
21 views

Unable to view contents of directory on Linux server via FTP, or using “dir” via shell, able to find files within directory nonetheless

I have a directory on my Linux (CentOS) server which serves as a repository for uploaded files from a webpage. I noticed I was not able to open the file using Filezilla via FTP (was formerly able ...
-4
votes
0answers
14 views

linux crash graphics go crazy

Frequently at boot my computer does this. It is extremely frustrating as I have to restart it many times till it works normally. Any ideas are greatly appreciated. system specifications ubuntu ...
0
votes
1answer
24 views

Is mounting a filesystem as read-only enough to prevent FS/data corruption in case of power loss?

I have a home-made HTPC setup. I often plug and unplug USB drives on it. I was wondering whether just unplugging these drives without umounting them first would be alright considering that they are ...
2
votes
3answers
16 views

How to make a local tar file of a remote directory

This link describes how to copy tarred files to minimise the amount of date sent over the network. I am trying to do something slightly different. I have a number of remote files on different ...
-2
votes
0answers
7 views

need to recover data from bcache device

I have had some problems with a bcache device, that ended up in: bcache-super-show /dev/bcache0: sb.magic bad magic invalid superblock(bad magic) I need to save the data that was on that device, I ...
14
votes
5answers
10k views

How to encrypt a file or directory in Linux?

What's the most popular command to do such things as encrypting a file or directory in terminal in Linux?
0
votes
1answer
27 views

Why an OS has same name on different achitectures?

What is the similarity in running a same OS (like Linux) on different architectures? I mean, we cannot run Linux x86 apps on Linux ARM. And even the OS itself is constructed differently for different ...
0
votes
0answers
12 views

Wifi hotspot, what's wrong with this redirection structure/code?

My linux machine provides a Wifi access point (made with hostapd package). Interface wlan0 is thus accessible by machines around. When clients webbrowses my machine, I would like any IP/url to be ...
0
votes
1answer
24 views

Keeping data separate from OS

Is there a simple way to configure windows/linux/mac so that the OS is installed on a separate HDD/SSD to all the user data which is stored on one or more drives?My motivations are: Quick and easy ...
0
votes
1answer
10 views

I am trying to run a cronjob but it is not executing correctly

I have the following line in my crontab */1 * * * * /usr/bin/screen -S lftp /bin/bash /media/c419d280-9833-4432-b5a5-520f040b87ec/NASDataDisk1/Other/autolftp-sftp.sh >> ...
0
votes
1answer
14 views

What is MASQUERADE made for?

A simple redirection is used on my server, with iptables rules : $ iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 13.37.42.1:80 $ iptables -t nat -A POSTROUTING -j ...
1
vote
0answers
18 views

GNU ddrescue imaging of failing hard drive is extremely slow

My friend has a (nearly full) failing 1 TB Western Digital My Passport. It will only occasionally mount on my MacBook, and refuses outright to mount on my Ubuntu box. I'm trying to use GNU ddrescue ...
0
votes
2answers
86 views

How to redirect LAN traffic to a L2TP/IPsec client connection on a gateway?

I established a L2TP/IPsec client connection on the gateway, and I'm trying to redirect my host on LAN to use this connection when accessing the Internet. Here is the network topology. This is my ...
-3
votes
0answers
13 views

The conflict spread: http://archive.ualinux.com maya Release (expected maya, but received precise) [on hold]

The conflict spread: The conflict spread: http://archive.ualinux.com maya Release (expected maya, but received precise) broccoli@K53SV ~ $ ls 123.txt Playlist.pls ...
0
votes
2answers
3k views

What command lists the files created in a specific month and is readable for the owner?

I am supposed to find the command that lists all the files created in September and are readable for the owner. Also explain how the command works. I know I'm supposed to use ls -l and I will ...
1
vote
2answers
126 views

Cannot load tp_smapi module on thinkpad x60

I have an old thinkpad x60 running debian. Recently, I brought a new battery, to check the stats(manufacture-data, first use etc ..) I installed a common program called tlp on the machine. But It ...
2
votes
5answers
3k views

sending one key stroke to two windows (Ubuntu)

I'm running Ubuntu Linux. I have two open Terminal windows running side by side. I'm looking to be able to hit the enter key once, and have that key stroke sent to both windows. (What I'm doing is ...
0
votes
0answers
3 views

How do I set systemwide connection over a proxy server

My Internet access is through a proxy, my OS is Debian 8, each application must configure it to use the proxy, but there are some that are a headache to make it work with a proxy, then my question is: ...
0
votes
1answer
16 views

How to chroot with sshd in a directory not owned by root?

I followed this, to restrict user to a determinate directory and it works perfectly, but i need to chroot a user in a directory that is /dir1/dir2/dir3/dir4 Suppose dir1 is owned by root, dir2 by ...
1
vote
0answers
9 views

Logging signal strength in router logs

how to know the client(device) signal strength that connected to WiFi in OpenWrt platform? Is it possible to to log signal strength of devices connected to Wi-Fi access point? Actually not even just ...