5
votes
1answer
10k views

Run 64 bit app on 32 bit system (Ubuntu)

All the questions I've seen refer to running a 32 bit app in a 64 bit system. I'm running Ubuntu 12.04 32 bit (actually elementary OS Luna, which is based on it) and I'm trying to run a 64 bit app ...
1
vote
1answer
66 views

Installing a package

I am running crunchbang linux and I would like to know if there is a way to install the Android Developent Tools as a package on my computer. I already have it extracted to a folder in my ~/downloads ...
3
votes
1answer
3k views

Not wake up after suspension

My OS is Ubuntu 12.04 on my laptop Lenovo T400. I had been using it quite well until this week. After suspending Ubuntu, whenever I lift the laptop lid (if the lid is closed), or press "Fn" key (if ...
7
votes
2answers
6k views

Counting number of times each IP address appears in log file

I have a file in the format as follows: $ cat file.txt 27.33.65.2 27.33.65.2 58.161.137.7 121.50.198.5 184.173.187.1 184.173.187.1 184.173.187.1 What's the best way to parse the file file.txt into ...
2
votes
1answer
259 views

Forward a host's network traffic to another host with the exception of SSH traffic

I am trying to redirect all the network traffic received in a old host to a different host. For that I created two new rules with iptables on the old host: echo 1 > /proc/sys/net/ipv4/ip_forward ...
1
vote
2answers
253 views

Lock console session

I've set up a no-x/console only system running a minimal install of debian jessie/testing. For this system I need a screen locker to lock the entire session when I'm away. vlock would be appropriate ...
3
votes
0answers
183 views

Flipping Control/Command in GNOME breaks Alt key in JVM

I want to switch Control and Command modifier keys in GNOME / Debian Jessie, because I use a Macintosh laptop. I have managed to get these changed via the TweakTool -> Typing panel, like this: Ctrl ...
4
votes
3answers
7k views

Run script as a different user from root [closed]

From root user, how can I give permissions to another user to execute the file /root/script.sh ? The idea is to run the script like sudo -u user1 /root/script.sh
1
vote
1answer
982 views

Run Java in a chrooted jail

I'm on a CentOS 6.5 machine with Plesk Panel which I used to create a chrooted environment for a user who can access it via ssh. I'm not a big expert but somehow I managed to let him use some basic ...
1
vote
1answer
92 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 ...
7
votes
2answers
573 views

Sudo changes PATH, yet executes the same binary

There are two Python interpreters installed: [user@localhost ~]$ /usr/bin/python -V && /usr/local/bin/python -V Python 2.4.3 Python 2.7.6 Sudo changes PATH when executed: [user@localhost ...
2
votes
1answer
1k views

Configuring a tftp server for multiple clients

I am using a tftp server to hold the boot image for a dev board and the dev board is hard-coded to look at a particular IP address for the server. This all works fine. What I want to do now is be ...
10
votes
1answer
8k views

Why does 'nohup command >& /dev/null' seem to “work” in some shells?

I edited an answer on Ask Ubuntu that was suggesting the following nohup gedit >& /dev/null & When they actually meant nohup gedit &> /dev/null & The latter correctly ...
3
votes
1answer
73 views

understanding the “chunk size” in context of RAID

Am I correct that chunk size in context of RAID is essentially the same thing as cluster in file-system context? In other words, chunk size is the smallest unit of data which can be written to a ...
4
votes
1answer
267 views

Dwm - pertag patch - save state between restarts

I'm using Pertag patch As a Gentoo user I apply dwm patches using Portage. Basically there's a directory where user can put a patch for sourcecode and Portage will apply it during the compilation ...
0
votes
1answer
365 views

Red Hat Enterprise Linux installation process through virt-manager

I'm going through the installation process using virt-manager which I will install a virtual Red Hat machines with on my physical host. I have the image iso on the host and mounted it on /media/cdrom. ...
4
votes
3answers
6k views

How do I authenticate to a wireless provider's “open” network without using a browser?

This sort of a setup seems to be common in shopping malls and airports. In Western Canada Shaw provides such a service and calls it "Shaw Open". I'm pretty sure other locales have similar services ...
3
votes
2answers
7k views

Allow NonRoot User to Mount a Particular NTFS External Hard Drive

I have a 4TB external hard drive connected to an Linux server. The fstab permissions on this drive are set so that only one particular non-root user has access to it: ...
4
votes
3answers
565 views

Why does export -p exclude $_ variable?

As far I know, there are 3 ways to see exported variables: $ export -p | wc -l 50 $ env | wc -l 51 $ printenv | wc -l 51 As you can see, export -p misses single variable. It's a $_ one: $ diff ...
3
votes
1answer
156 views

XFCE - find out which command is executed by a given menu item

I would like to know which command is executed when I click on a given XFCE menu item. For instance, in my menu, Applications contains an item Users and Groups, but clicking on it does nothing. I ...
1
vote
1answer
695 views

Get music from subsonic to run in headless MPD

I share a subsonic server with several colleagues, together we have around 22k songs up there. Now I want to set up a MPD on something like a raspberry pi to listen to the music from subsonic. I want ...
4
votes
3answers
904 views

What does 'l' in file metadata mean

When we type ls -l, we get meta data regarding all the objects in the current directory. The meta data has 10 dashes and the 1st dash indicates if the object is a directory or file or a link d ...
6
votes
3answers
1k views

Remote ls on multiple machines

I want to connect to multiple machines specified in a file and perform 'ls' there. That's what I've come up with: for machine in $(cat machines) do echo "Connecting to " $machine ssh $machine ...
1
vote
2answers
845 views

80-net-setup-link no longer functions when I downgraded systemd

I've downgraded systemd to version 208. Although I still have /etc/udev/rules.d/80-net-setup-link.rules on my disk, but the names of network interfaces were not named correctly: e.g wlp3s0 is not ...
0
votes
0answers
66 views

replacement script multiple targets

I have this input file Name=code_229633_138;isoforms=1 Name=code_229633_138 Name=code_229633_138;Target=R77_09738T0 Name=code_230519_1;isoforms=1 ...
7
votes
1answer
5k views

Create a wifi hotspot on Gnome 3 / Arch Linux

I'm trying to create a wifi hotspot in gnome shell and Arch Linux. I open "System Settings" > "Network", then I select "wifi" on the LH side and click "Use as Hotspot..." on the bottom. The system ...
4
votes
2answers
3k views

How to encyrpt a message using someone's SSL smime.p7s file

I need to send a private key file to someone (a trusted sysadmin) securely. I suggested a couple options, but he replied as follows: Hi, I don't have neither LastPass nor GnuPGP but I'm using ssl ...
1
vote
0answers
891 views

What alternatives are there to ipset for blocking large sets of ip addresses / address ranges?

Are there alternatives to ipset that offer similar efficiency in handling large sets of ip addresses or ip address ranges? We originally used iptables to selectively block access to our servers for ...
0
votes
1answer
241 views

Changing resolution : with X and without X

I'm working on an Ubuntu server without X and I would like to easily change the resolution. In order to do that, I have to specify GRUB_GFXPAYLOAD_LINUX=1280x800 in the file /etc/default/grub, then ...
2
votes
0answers
337 views

Set PERM_WRITE_PROTECT on an SD card

From what I read here and here I gather that there is a bit on SD cards called PERM_WRITE_PROTECT that will allow me to make an SD card read only. Is it possible to set this bit from Linux? If so, ...
2
votes
1answer
146 views

Linux Heartbeat options possibilities

I would like to understand if my below scenarios are possible in Heartbeat in Linux. Setup: Two Database Servers running Mysql in Active/Passive mode in replication mode having Heartbeat setup for ...
4
votes
3answers
14k views

echo bytes to a file

I'm trying to connect my rasberry Pi to some display using the i2c bus. To get started I wanted to manually write stuff, bytes in particular to a file. How do you write specific bytes to a file? I ...
1
vote
1answer
75 views

Texlive fonts screwing up my truetype fonts

I have been running into this strange issue. When I install texlive fonts, they automatically register as system fonts. If I install the texlive variant of an already installed truetype font (for ...
17
votes
2answers
23k views

Fastest way to concatenate files

I've got 10k+ files totaling over 20GB that I need to concatenate into one file. Is there a faster way than cat input_file* >> out ? The preferred way would be a bash command, Python is ...
7
votes
2answers
7k views

Lenovo T440s Fingerprint reader in Fedora 20

I just got my new Lenovo T440s and installed Fedora 20 with Gnome 3 on it. Everything runs smoothly, except for the fingerprint reader. Its got a Validity VFS5011 (138a:0017) device which is not yet ...
3
votes
2answers
17k views

I'm not able connect internet from vmware player with centos

I installed centos 6.4 and when I installed I set the network config. But somehow centos did not save them. Now I forced server to use dhcp but it is taking wrong IP address and it is not able to ...
0
votes
0answers
140 views

Touchpad gets disabled if notebook removed from dock

I have a T430 with CentOS 6.4 used as a Desktop. If I remove it from its dock, the touchpad isn't working anymore. My question: How to debug/solve this problem??
5
votes
1answer
4k views

Cinnamon 2.0.14 crashing when a second monitor is enabled with NVIDIA drivers (Mint 16)

Here's the set-up: 2x identical GTX460 cards 1x BenQ 144hz monitor (1920x1080) 1x Asus 60hz monitor (1920x1080) I was told to avoid installing the NVIDIA driver myself and use the ...
1
vote
1answer
316 views

How to bind super key to Ctrl+Shift using xmodmap?

I have read the xmodmap documentation. I could only find information on how to bind one key to another. How do I bind one modifier key to a combination of other modifier keys? Can I do this using ...
0
votes
1answer
150 views

How do I resume booting process after sulogin procedure

I upgraded Arch Linux today and systemd stopped booting again. So I logged in with sulogin, mounted the drive. How do I resume the booting process? Like in old days, init 3 somethings like that.
1
vote
3answers
372 views

Is it dangerous to remount a partition rw/ro frequently?

I'm developing an embedded linux system running on a SD card. To protect the SD against corruption I've used a read only root filesystem as well as an extra partition where I mount /home, also in ...
1
vote
2answers
1k views

Free disk space from a JBoss log file which is still being written to

Is there any locking on the content, imposed by the process if at all the process is using the file. We host a JBoss app server on a RHEL 6.4 OS and due to the disk space constraints we have decided ...
12
votes
3answers
7k views

chmod + silent mode + how force exit code 0 in spite of error

Is it possible execute chmod and ignore error from command Example ( remark file.txt not exsist to show the example ) When I type chmod 777 file.txt I get error on the output chmod: cannot ...
1
vote
1answer
55 views

Which kind of additional cleanup may be required after removing manually added entries from /etc/hosts?

My system is "Unable to resolve" removed entry from /etc/hosts. During development, I needed to add the custom domain entry to /etc/hosts, stating it resolves to 127.0.0.1. This mapping worked fine. ...
3
votes
3answers
810 views

if/then/else man page

I would like to know if there is any man page documenting the construction of the most basic script commands like if/then/else, while, for each, and all the relative switches, like -eq, -e, -ge, and ...
1
vote
1answer
1k views

Exit of “> ” mode in Unix shell

In sh (not Bash), how would we abort execution of command when the prompt is in > mode? For example, when entering a string with quotes only at the beginning, it makes the prompt look like >, ...
5
votes
5answers
4k views

How to get folder size ignoring hard links?

I use rsnapshot for backups, which generates a series of folders containing files of the same name. Some of the files are hard linked, while others are separate. For instance, hourly.1/file1 and ...
4
votes
3answers
173 views

Why are file handles a scarce resource?

I feel like every tutorial I read on resource management in server settings starts by asserting that file handles are a scarce resource, and we should therefore aim to keep the list of open files to a ...
5
votes
4answers
5k views

maximum number of files ls can list [duplicate]

Im using a script to delete old file in a directory, but the script kept showing /usr/bin : Argument list too long It turned out the number of files were 40000 and more, So I want to know what is ...
0
votes
0answers
546 views

Yocto project installation error

I installed the Yocto project in Ubuntu 12.04 desktop. I followed steps what they given in the yocto website Supported Linux Distributions. $ sudo apt-get install gawk wget git-core diffstat unzip ...

15 30 50 per page