1
vote
1answer
922 views

How can you run a script triggered by a joystick input?

I'm using a Raspberry Pi running Raspbian to power my arcade cabinet. I want to shut the Pi down using the sudo poweroff command without using the keyboard. I'm thinking the best way would be to ...
1
vote
2answers
8k views

Substring only the first column in awk

I want to take first 500 characters of the first column and leave the rest of the columns as it is, using awk. This is what I am trying to do: awk '{print ${$1:1:500} $2,$NF;}' doc.txt But I get ...
1
vote
2answers
3k views

How to install red5 & Java on centos 6.4

There are many tutorials out there but not so many for 6.4 and it seems people are having problems with running either Java 6 or 7 and Ant. So does anyone know where to find a definitive guide? ...
1
vote
1answer
1k views

Up to date Mint and AMD/ATI Radeon 2600 HD Mobility

I just installed Linux Mint (3.11 Kernel) on a 2007 Notebook with a Radeon 2600 HD Mobility. Works fine so far, but is there any chance I can use propritary drivers for this GPU? What will happen if ...
1
vote
1answer
2k views

Force fsck check after reboot with single command

I'm looking for systemd's equivalent to the shutdown -F command. I know that I can force fsck by adding fsck.mode=force to kernel options or tweak mount count for disks. I have tried touch /forcefsck ...
1
vote
2answers
329 views

Doubts about creating a .Xresources file.

I want to customize the look and feel of my xterm and have read that the way to do it is creating a .Xresources file and saving there the desired configuration. I've also learned that this file can ...
1
vote
2answers
1k views

How to restore my system after reinstalling Ubuntu?

I'm presently having Ubuntu 13.04. I am wishing to change it to the next version by installing the next version i.e. Ubuntu 13.10 using bootable DVD. For that I will 1st download .iso image from ...
1
vote
2answers
2k views

Edit home directory for an LDAP user in Linux

I have an LDAP user who accesses a server based on having the appropriate LDAP host attribute via sssd. This user does not show up in /etc/passwd because he is not local. How do I modify his home ...
1
vote
1answer
542 views

Install libxcb from source

I try to install libxcb from source, but I have an error, I do not understand why, this the error: configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met: No package ...
1
vote
1answer
795 views

using GPS with Linux & output only certain data

Hello I am currently using BU-353 S4 USB GPS in my Linux, the command, cgps -s Output various parameters including, Time, Latitutde, Longitute, Speed, Heading etc... is there any way to output ...
1
vote
0answers
268 views

Debian 7 black screen after loading OS

I have laptop Sony Vaio VPCCA with Debian Wheezy(7.1) installed as second OS. It worked fine for few weeks but now if I try to start Debian, there is all the loading stuff and when the GUI should ...
1
vote
2answers
693 views

Is a bad NFS mount preventing a clean boot?

I'm on Ubuntu server 11.10 (x86) and I basically ran into this problem as this: http://serverfault.com/questions/56588/unmount-a-nfs-mount-where-the-nfs-server-has-disappeared The umount command ...
1
vote
2answers
3k views

I messed up my EFI boot, what do I do?

I have Debian Wheezy installed on my computer using EFI boot. It used Grub2 as the bootloader. I then decided to install Arch Linux, using EFI as well, on another partition and chose Grub bootloader ...
1
vote
2answers
703 views

Running `sudo /sbin/service mysqld start` causes system to crash

OS: CentOS 5.10 Service: Amazon Web Services Attempted to remove MySQL 5.0 and install MySQL 5.6 I had a server set up, and was going to use MySQL, but it was was set up with MySQL 5.0. Since ...
1
vote
1answer
99 views

Linux adding wordlist for spell checking

We have a small linux cluster (12 machines). Before we populate our database (then create a report from database contents) we would like to spell check a few files. The problem I have is some fields ...
1
vote
2answers
459 views

How to invoke a shell built-in explicitly?

I want to customize the functionality of cd command as per my needs. I define following function - function cd () { cd "$@" && pushd "$@"; } The intent of this function is to automatically ...
1
vote
1answer
110 views

Is it possbile to mount Windows filesystems without using the root account?

As we all know, the intervention of root is necessary to mount a filesystem on Linux. But is it possible to do this without access to the root account? Because I don't know the password of root.
1
vote
1answer
444 views

Long(est) security update support for stable GNU/Linux distributions?

Which a) FLOSS b) stable (= not rolling release) c) desktop GNU/Linux distributions have a long security update support? Of course it’s interesting which distro has the longest support, but 2nd, 3rd ...
1
vote
1answer
1k views

How to set default auto mount options for removable media?

I have quite a bit of removable media (flash drives, external hard drives, etc) that I want to adjust auto mount options for. How does one do this? Is there something similar to /etc/fstab?
1
vote
2answers
248 views

How to load .bashrc from “bash -c”

Trying to run a function defined in my .bashrc using "bash -c ". I end up with the error "command not found". How do I get "bash -c" to load my init file?
1
vote
3answers
71 views

What is the exact definition for “logging in”

Radu's answer is extremely informative here http://askubuntu.com/questions/376932/why-who-command-does-not-shows-root-as-a-logged-in-user However this makes me wonder "what is the exact definition for ...
1
vote
0answers
39 views

syslog: process specific priority

I have two user processes A and B. Both use syslog using facility LOG_USER. I want to have different threshold levels for them: For A, only messages of priority ERR-and-above must be logged For B, ...
1
vote
2answers
359 views

Swap bash script pins htop's memory usage

I deployed a hack to add swap space to a VPS that otherwise didn't allow me to use swapon to create a file. Prior to adding and executing the script, I followed the steps outlined here. and ...
1
vote
1answer
3k views

apt-get update won't update - undo /apt-add-repository

When I run apt-get update, this happens: Hit http://dl.google.com stable Release.gpg Hit http://dl.google.com stable Release Hit http://security.debian.org ...
1
vote
1answer
3k views

How can I flash_erase mtd0?

I am trying to find a way to nandwrite my mtd0 partition which contains my u-boot environment. When I try to flash_eraseall /dev/mtd0 though I get: flash_eraseall: /dev/mtd0: Permission denied ...
1
vote
1answer
2k views

Cannot Connect to Internet but can SSH into Solaris x86 (vs. 11)

I am able to connect remotely to the machine using SSH, but I cannot ping www.google.com through the machine. I did the following to make sure SSH was enabled (well I know it is, as I am using ...
1
vote
1answer
60 views

bash script var not changed after the loop [duplicate]

I'm quite new to bash scripting, and I wrote the following script to emulate the wc -c command: (I know it doesn't count the end of the line) #!/bin/bash echo $1 len=0 cat $1 | while read line do ...
1
vote
1answer
650 views

How do I install TazPkg in SliTaz Linux

How do I install TazPkg in SliTaz Linux? Usually to install tazpkg packages you need TazPkg but I unsintalled TazPkg because it was broken now how do I install it again?
1
vote
1answer
354 views

How can I finding the Modify/Access/Change time of a file or directory? [closed]

I am using Debian 7.2 and would like to know the shell command for finding the MAC time of a file or directory. I tried man -k "MAC" and got a lot of hits about macros. I then tried man -k "MAC ...
1
vote
2answers
1k views

Automatically disable Linux extensions for Samba mounts

Samba enables Linux Extensions by default, which can be checked via /proc/fs/cifs/LinuxExtensionsEnabled On Mac OS X (10.8.5 or older) as well as older CIFS shares, mount.cifs will fail with a ...
1
vote
1answer
272 views

Unable to update my system Ubuntu13.04: Getting message - requires installation of untrusted packages

I had been trying to update my Ubuntu13.04 via 'software updater'. The updater messages that the following needs to be installed. Press continue to install When I press continue , a window appears as ...
1
vote
6answers
530 views

How to calculate by taking first field

I am trying to do a calculation like this, I have a text file with numbers like 459 455 463 And I must calculate percentage of those numbers relative to 600. I mean exactly (459/600)*100 that ...
1
vote
0answers
388 views

How to install Ubuntu in a netbook, but keeping the original win7 installation in storage

I have a Samsung N210 netbook. It has windows 7, starter edition. I´ve tried the latest Ubuntu version using a pendrive and loved it so far. I would like to install it in my netbook, but I would ...
1
vote
1answer
3k views

Linux Mint 15: Oliva can't wake from suspend/hibernate?

As most issues people have had, I can't wake my laptop from suspend or hibernate mode. The computer goes to the lock screen and then freezes up to the point where the mouse won't move, forcing me to ...
1
vote
1answer
164 views

Kernel pppd task hung after running over serial port

I am trying to run the ppp daemon on the console port of my board which has p2020 processor with Linux kernel 2.6.32. After running ppp interface ppp0 is not coming up and I get an error pppd blocked ...
1
vote
0answers
207 views

Why does my CMS run extremely slow in my workstation (Ubuntu)

For over a year I have been struggling with the response speed on my Drupal v7.2x CMS install. Let me explain. I'm running Drupal 7.2x on an Ubuntu 12.10 (upgrade to 13.xx pending) for the purpose of ...
1
vote
1answer
92 views

Are there issues concerning trustworthyness of selinux? [closed]

Since selinux is/was? developed by the NSA, and with the current noise around privacy etc concerning said agency, should I be concerned about compromised security on my system?
1
vote
1answer
1k views

Why aplay cannot play a 4 or 6 channels sound when speaker-test does?

I am currently trying to setup a soundblaster card (CA106 chipset) to output to 4 channels. I plugged 4 speakers to analog output (using the jack plugs). When I am testing the pseakers using the ...
1
vote
2answers
441 views

Linux - Windows 8 - Samba - Can see dir and contents but not create

have the following setup Raspberry pi with samba installed and running Windows 8 machine that can see the samba share, access the proper DIR, see all contents In the smb.conf file, at the base of ...
1
vote
5answers
5k views

Find files by the length of filename

I want to find all files by length of the file names. For example if I want to find files of length 1, such as a.go, b.go I put: grep '.\{1\}' file But this does not work. What command can I use ...
1
vote
1answer
924 views

OpenVPN port forwarding without router forwarding?

I would like to setup an OpenVPN server with port forwarding on my VPS, because I can not forward ports in my home router. The general question is, if it is even possible to bypass router port ...
1
vote
2answers
443 views

“Out of Memory” error while copying large files with pcmanfm

This is an older machine running a Debian-based distro with lxde and pcmanfm used as file manager. pcmanfm normally runs quite well, except when it comes to copying very large files (e. g. *.VOBs from ...
1
vote
4answers
13k views

Helo command rejected: need fully-qualified hostname Error

My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then My customers get this error they can't send emails. 404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need ...
1
vote
1answer
4k views

“No such file or directory” on files that exist? [duplicate]

In the past day, I've found at least 4 binaries that say "bin-name: No such file or directory" when I try to run them. Even if I type part of the name and tab complete it, I get the same error. I'm on ...
1
vote
1answer
802 views

XBMCbuntu freezes at random intervals

I have a Gateway GM5474 which is running XBMCbuntu on a 500GB Hard drive (the originial I believe or maybe slightly newer hard drive). Little background: The system is still stock, and I was having ...
1
vote
0answers
20 views

Using tput in $PS1 is breaking line wrapping [duplicate]

Good Morning- I'm trying to use tput outputs in my $PS1 to set the background color to red in the event I'm on a production server: if [[ `hostname -s` = prod-db ]]; then export ...
1
vote
1answer
550 views

Broadcast port to other computers after SSH reverse tunnelling

I have been reading on how to reverse tunnel and I am using this command: ssh -f -N -T -R25565:localhost:25565 dns.mindfulhacker.tk To forward my Minecraft server. My other server can connect to my ...
1
vote
0answers
134 views

How to disable SMTP auth plain for Citadel 8.20 on Slackware 14.0?

How do I turn off SMTP AUTH PLAIN for Citadel 8.20 on Slackware 14.0? If I set up postfix to handle SMTP would this allow me to not have SMTP auth plain enabled
1
vote
1answer
1k views

Why does yumdownloader download i686 files if my pc is x86_64 and also installs them?

I simply found out what packages were in the group: Desktop Platform via yum groupinfo "Desktop Platform" Then I downloaded them all one by one via: yumdownloader --resolve ...
1
vote
1answer
256 views

32-bit on 64-bit: memory usage for multiple processes

I'm working on a Linux hosting solution for game server software, however the software in question is 32-bit and I'd be running 64-bit on the host. Now, I know I can run 32-bit apps on a 64-bit host ...

15 30 50 per page