1
vote
1answer
76 views

Creating shell script on Desktop and not getting a prompt?

I have created a shell script on Desktop. Whenever I open it , I get a prompt to either run in terminal, display and etc. How to remove this prompt?
2
votes
0answers
474 views

DHCP lease acquired , yet no ping, not even to default gateway

I've just installed Debian Wheezy on my PC using netinstall. I can only use its wifi. My interface has been recognize by the system, and I've used: iwconfig wlan0 essid MY_HOME_AP (I've switched ...
0
votes
1answer
170 views

Opening ALSA Microphone in two programs?

I'm using a raspberry pi to capture some audio, but I only want it to do it when the noise level goes above a certain level, and then the device will record until two seconds after it falls below that ...
8
votes
2answers
10k views

When exactly does tmpwatch clear out files I place in /tmp?

CentOS 6.x I'm confused on when exactly files I place in /tmp/ are deleted. /etc/cron.daily/tmpwatch has the following: #! /bin/sh flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/....
1
vote
3answers
414 views

How do I start a server via ssh and have it run after I log out?

I ssh into a virtual server and start up a web server. Everything runs as expected. But when I close my terminal on my laptop, the process dies on the virtual server. How do I fix this?
5
votes
1answer
2k views

Loop through binary data chunks from stdin in Bash

I'm looking for something like while IFS= read -r -n $length str; do ... done but for binary data. Is it possible to do this using dd or other tools? Is there some technique to make these tools able ...
2
votes
1answer
1k views

How to tell what wireless protocols my network card is using?

I want to know which wireless protocol my card is currently using. I found a similar question that tells you what network protocol your card supports, but I want to confirm that my card is actually ...
2
votes
0answers
432 views

delete key doesn't remove selected files

In file manager or on the desktop when I select a file and hit delete key it does nothing. Shift+delete works fine, as well as deleting in text editors. I'm using Debian Wheezy 7.4 with xfce desktop ...
1
vote
0answers
156 views

apt repository not showing in apt-cache policy, why?

I have a private mini-dinstall based repository. sources.list.d has an entry for it, like https://user:pass@my.host/repos/ tools/ I have installed apt-transport-https and I can happily install ...
2
votes
2answers
2k views

Best solution advice for backup to NAS over WAN

What is the best solution for daily backup of Linux folder to NAS server over WAN? Here is the situation: My customer has expressed a wish that source code for his project must be backed up every day ...
3
votes
2answers
3k views

Find the maximum length of characters in a field

Can you tell me how to find the maximum length of characters in a given field? For instance, with this input file: s.no,name 1,ATM 35,money 63,back The maximum length in field 1 is 2. So, I want ...
0
votes
3answers
209 views

What is the difference between X11R7.7 and X Server 1.14.4?

When I issue the command X -version in terminal window, I get the output: X.Org X Server 1.14.4 On the X.org website, it says that latest release is X11R6.7. I am confused why there are two version ...
0
votes
1answer
246 views

SMTP server that works with gmail?

I'm running debian and in the past I used google apps free edition. That is no longer available so I won't be able to use it for my new domain on my new box. In the past when I tried to setup a smtp ...
3
votes
1answer
648 views

setting default umask and user:group on directory

I have a directory data and I need to set default umask and ownership for all directories/files (both existing and future files). I want all files in data to have ownership root:martin ans ...
3
votes
1answer
300 views

Is there a way to make sure only one systemd@.service instance is running resp. gets started

I would like to use one .service file for starting a service from varying directories but it would be nice if there was a way to automatically stop any running instance with a different instance name (...
0
votes
1answer
28k views

Trouble Installing APT on Centos 6 64 bit

Can someone help me get apt-get installed? I followed these instructions to try and install APT on Centos 6 64 bit: wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf....
2
votes
1answer
2k views

Iotop shows swapin but vmstat si is zero

I run iotop and vmstat on a CentOS server. Under some load the iotop swapin column starts to display values around 5% to 20% for some processes. But vmstat si field remains at zero. I thought that ...
2
votes
1answer
152 views

Lose gnome3 wallpaper

My wallpaper is now white, the icons are displayed, but the app in parameters/background does not launch. In gconf, /desktop/gnome/background/picture_filename is set to a valid image (I can see my ...
4
votes
2answers
1k views

How to copy files *to* a camera?

I'd like to copy a firmware update file to my Canon 7D camera, connected via USB. After it was auto-mounted by thunar + thunar-volman + gvfs-gphoto2 I tried the following: $ cp eos7d-v205-win/...
4
votes
4answers
9k views

Unable to write to a GPIO pin despite file permissions on /sys/class/gpio/gpio18/value

This is on a Raspberry Pi. Here's the output of sudo ls -lL /sys/class/gpio/gpio18: -rwxrwx--- 1 root gpio 4096 Mar 8 10:50 active_low -rwxrwx--- 1 root gpio 4096 Mar 8 10:52 ...
1
vote
1answer
247 views

How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window?

If I am in a Linux virtual terminal (pressing Control-Alt-F1 on Ubuntu), and I use the command cacafire, I get the flames inside the actual terminal. However, if I am in the gnome environment, and I ...
6
votes
2answers
678 views

Why “ls” doesnt show the file that “find” discovered ?

(New to unix) In ubuntu When I am up in "/" folder i type sudo find . -name .erlang.cookie and the result is ./var/lib/rabbitmq/.erlang.cookie then when I am on the folder - /var/lib/rabbitmq ...
5
votes
2answers
225 views

What is the name of the formatting output from man?

Output from the man command has bold and underlined text that can be read by less. For example, H\x08HE\x08EL\x08LL\x08LO\x08O displays HELLO (boldface) or H\x08_E\x08_L\x08_L\x08_O\x08_ displays ...
2
votes
1answer
60 views

How to run man with formatting in not interactive shell

I have webpage that process ANSI codes and output from man command (underline A as A\x08_) and I call php shell that execute bash -c "<command>" and print the output on the webpage. On the ...
0
votes
1answer
279 views

What is CONFIG_BASE_SMALL=0

Looking at the config file of Linux (that is generated prior to build) I found the following line: CONFIG_BASE_SMALL=0 What does it mean? If I want my linux kernel to be as small as possible shall ...
0
votes
1answer
123 views

Windows creates autorun.inf when mounting samba share

I'm running samba on my Linux machine. When I mount a samba share from Windows, such as my home directory, a file named autorun.inf will be created inside the mount. It seems to be a text file but ...
1
vote
1answer
36 views

What does the `maximum error` field in `sudo dmidecode -t 22` mean

When I do sudo dmidecode -t 22 to get some information about my battery there is a field called maximum error For my new battery maximum error is 15 % (cheap replacement from a web store) for my old ...
3
votes
2answers
683 views

How does a bootloader and kernel interact after the kernel is loaded in memory?

I'm a little bit confused about the role of bootloader and its interaction with kernel, especially when talking wrt ARM Llnux. Once the Kernel is loaded into RAM, is there any job left for the ...
2
votes
1answer
2k views

Problems mounting a disk

I have a disk that has failed to mount on start up. I have commented out the line in fstab to try to diagnose the issue: # /dev/sdc /media/bigdrive ext4 auto,exec,rw,user,async 0 0 Then rebooted. I ...
0
votes
1answer
860 views

Starting Bootlog daemon: bootlogd

Whenever I run linux on many ARM based systems, I see a message like this: Starting Bootlog daemon: bootlogd. As can be seen from the log messages below, it takes some finite time, close to 0.5 ...
1
vote
2answers
742 views

What is a device tree and a device tree blob?

What exactly is a device tree, and a device tree blob? Where can I get its source code for a particular linux version? I found such name while running linux on xilinx chips (having ARM 9), for ...
4
votes
1answer
4k views

Difference between ulimit -n and /proc/$PID/limits

In Linux, there is open file limit. I can use ulimit -n to see open file limit, which is 1024 default. Then I also can see per process open file soft/hard limit by looking at /proc/$PID/limits. I see ...
0
votes
2answers
74 views

How can I use sed to only print what appears between these two strings?

How can I use sed to only post what appears between iterations of: "<title><![DATA[" and ]]></title> I tried doing sed 's/<title><![DATA[/(.*)/]]//g' ...
3
votes
1answer
246 views

How to regain control of my computer?

I am running a database server on my computer. Sometimes it takes up so much memory resources that the system stop responding to keyboard and mouse inputs. Although I can move the mouse pointer and ...
1
vote
2answers
401 views

What information is stored on the gap before the first partition?

Partitioning tools(for example fdisk) tend to leave a 2047 sector(LBA 1-2047, 1048064 bytes) between the MBR and first partition. On LBA 0 there is a MBR and from LBA 2048 starts the first partition. ...
5
votes
2answers
1k views

Changing default permissions for wget?

I'm using a PHP script to call shell_exec and execute wget to download some files to /var/www/dir/. (Internal tool, so security isn't much of an issue) The directory has 777 permissions. But when I ...
3
votes
0answers
3k views

System freezes upon executing any boot option in a live USB installation of Mint

Problem I'm trying to install Linux Mint 16, 64-bit, MATE using a live USB. The boot option menu itself is responsive and work as expected. However, when I execute any of said boot options, the ...
2
votes
1answer
2k views

RHEL OS not visible anymore after installation of windows

I had a RHEL system with / - 40 GB, /boot - 100 MB and /swap - 2 GB as primary partitions. The remaining space I used as secondary partition for /home - 189 GB. I needed to install windows in this ...
2
votes
1answer
948 views

Find out if files in a folder exist under other name in other folder

Possibly a little incorrect English ahead: There are at least 2 folders. For this, A contains files without extension, usually usernames, and B contains similar files, with '.yml' extension or ...
3
votes
2answers
108 views

How to manage authentication with multiple VPS's and GoogleApps?

I have a bunch of VPS's and every now and then I have to create another. Currently I use AWS, Rackspace and DigitalOcean as my IAAS providers. Most of them are Ubuntu-based. Besides, I have the users ...
4
votes
2answers
889 views

How to find out the manufacturing date of a battery from linux

How can I find out the manufacturing date of a battery from linux? If this is not possible are there other tests to check if the battery new and healthy which I can run under linux?
1
vote
1answer
379 views

How can I retrieve screen unlock times in Gnome on later Red Hat variants?

The last command only retrieves the login times. I'm interested in the times that the screen was unlocked. Any indirect means of getting this are also welcome.
11
votes
5answers
10k views

Font rendering issue in urxvt — too much space between characters

Starting earlier today I am getting font rendering issues with rxvt-unicode. Specifically with many fonts I get an abundance of extra space between characters. In other fonts rxvt refuses to change ...
0
votes
1answer
2k views

Flash player on Scientific Linux 6.5

After a: yum install -y flash-plugin and a USERNAME="USERNAMEHERE"; mkdir -p "/home/$USERNAME/.firefox/plugins"; ln -s "/usr/lib64/flash-plugin/libflashplayer.so" "/home/$USERNAME/.firefox/...
1
vote
0answers
116 views

UBS-Stick with Arch is no longer bootable after Win8 has been booted

CS student but Linux newbie here. I bought an Acer Aspire S7 and wanted to try an Arch Installation on an USB-Stick. I followed the Beginner's Guide. I also set up disk encryption using dm-crypt+LUKS ...
1
vote
2answers
109 views

What's the difference between print and head?

I know head gives you the beginning section of a file. But in this case, I'm trying to go through my source control and find every file that has a shebang line. And I'm failing to get results when I ...
12
votes
4answers
8k views

How can I measure and prevent clock drift?

On several production platforms we have observed symptoms which appear to suggest that the time of day clock is periodically jumping forward or backward. The jumps are typically around 1 second, ...
1
vote
1answer
83 views

Blue gradient line on top and bottom instead of Ubuntu-USB-Grub-Screen

I just bought a E350M1 mainboard with onboard AMD Radeon 6310 Graphics Card. I did (I think I did) the UEFI-Bios trick: CSM activated and plugged-in a usb-stick with an Ubuntu 13.10 Desktop i386 ...
1
vote
2answers
394 views

Why Putty inserting ~ into my Fedora bash shell

Recently while working in Putty logged into my Fedora system I have started getting random ~ characters on my shell. Additionally, while I am editing in VIM I'll have characters randomly change to ...
4
votes
4answers
14k views

Compare two text files and find matching lines

I have two files A and B. A looks like this (4 to 6 lines): GAGA CAGA GGGT TATT file B is a really big file with thousands of lines, here is a short example: AAATGTCAAGAGACAGAAATGTCAAGAGGGT ...

15 30 50 per page