0
votes
1answer
38 views

Unable to delete a file

An update has corrupted my system, I attempt a receipt and update of php5 error that you can not write /usr/lib/php5/libexec. When I try to read this file, which I find is this: ...
1
vote
1answer
19 views

How to detect exact spec of my disk on a cloud server?

I've already read a question about whether your disk is SSD or HDD. When I issued the below command I've got surprised: cat /sys/block/vda/queue/rotational The output was 1. The question is why ...
0
votes
0answers
8 views

PlayOnLinux(POL) Excel 2007 can not open more than one spreadsheet

I have Installed CentOS 6.5 - i386 and PlayOnLinux 4.1. On that MS Office 2007 is installed. Word 2007 is able to open more than one document simultaneously and also possible to perform Cut, Copy and ...
0
votes
1answer
25 views

Solid State drive vs. traditional hard disk in a virtual server environment

I am currently considering upgrading my virtual-hosting plan because of very bad write performance (mostly writing to a MySQL database, but I notice it also when compiling a program or copying files - ...
0
votes
0answers
9 views

atftpd listens on wrong UDP port

When I start an atftpd daemon with /usr/sbin/atftpd --port 69 --bind-address 10.10.10.2 --daemon /srv/tftp/ command, the TFTP server listens on ephimeral port(58418) instead of port 69: # atftpd ...
0
votes
1answer
18 views

All directories wrongly identified as git repos in zsh

I am using zsh and Oh-My-Zsh on Ubuntu 14.04. For some reason all directories are indicated to be git repos. This is true for all oh-my-zsh themes, which leads me to believe that this is a zsh issue ...
0
votes
2answers
34 views

netstat shows an ESTABLISHED connection with no process

I am debugging some problems with postfix. When I establish a connection nothing happens and netstat shows: $ netstat -anp ... tcp 0 0 129.132.202.106:25 129.132.179.232:60154 ...
1
vote
1answer
21 views

Headless use of open office or libreoffice in Ubuntu 14.04

I want to install openoffice headless in Ubuntu 14.10, but when I try to install it, it says there is no package for that name. I installed libreoffice-common using apt-get, but I can't find ...
2
votes
1answer
13 views

awk + gsub + how to work with all kind of characters

The following awk command target is remove spaces and unnecessary quotes from CSV file and only from single words between separators awk 'gsub(/("[ ]+|[ ...
1
vote
1answer
25 views

How to enable swap accounting for memory cgroup in Archlinux?

On my Archlinux box I want to limit some applications to a smaller amount of memory using cgroups. Since I use swap, I need to account memory+swap. How can I enable swap accounting?
2
votes
0answers
47 views

DNS works half of the time in Oracle VirtualBox and I can't even maintain /etc/hosts file

I have installed three Linuxes on same laptop and same VirtualBox and this is my success ratio with DNS: HortonWorks & CentOS. Worked for 5 minutes and never after that again. VM image ...
2
votes
4answers
93 views

Change to the last modified subdirectory of the current directory

I have an application which generates a couple of files in different directories at a regular interval and I need to check the latest files generated, i.e. the file which is generated in the most ...
-2
votes
0answers
23 views

Install the Avro Phonetic Bangla (Bengali script) typing keyboard on Linux Mint

I want to type in the Bangla (Bengali) language with Linux Mint. I want to install the Avro Phonetic Bangla typing keyboard for Linux. This is made for Ubuntu/Fedora/OpenSUSE. The install ...
0
votes
1answer
38 views

Writing a Bash script to run and end at specific times

I'd like to create a script that will do the following. Start at a given time during the day and end at another given time. So for example, I have a program I'd like to test, so my script would be ...
1
vote
1answer
19 views

How to detect a working ttyUSB for my usb modem

I working with OpenWRT and need setup USB 3G Modem. When i connect USB modem i see in logs that system create four ttyUSB. Why four? Tue Jul 29 07:45:23 2014 kern.info kernel: [ 580.220000] ...
2
votes
2answers
123 views

Replacing lines containing a pattern with sed

How can I replace a given character in a line matching a pattern with sed? For example: I'd like to match every line beginning with a letter, and replace the newline at the end with a tab. I'm trying ...
2
votes
1answer
13 views

Debian Wheezy live - gparted, dmsg, fdisk etc. do not detect local hard drive but it is shown during installation

Yesterday I finished backing up my data and it was time to wipe that HDD of mine for good and freshly install Debian Wheezy stable with Xfce as a WM. I've booted into a live session to see if things ...
10
votes
0answers
52 views

When and how was the double-dash (--) introduced as an end of options delimiter in Unix/Linux?

I don't think the shell/utilities in historical Unix nor in something as "recent" as 4.4BSD supported using a double-dash(or two consecutive hyphens) as an end of options delimiter. With FreeBSD, you ...
0
votes
1answer
41 views

How to know free disk size witout df command? [on hold]

Is it possible to check free disk size in Linux without using command lines such as df? Since my host machine is embedded Linux, there are no direct command lines that show free disk size.
1
vote
1answer
32 views

Restore default /etc directory

I just ran a script I'm working on, and due to a mistake in directories, overwrote most of the default /etc directory files. I can re-add my user account easily, but most other things are gone such ...
0
votes
0answers
14 views

How to create a shortcut of some folder on Docky?

I am using docky on ubuntu 14.04.I am able to pin shortcut of applications to it. But how can I make a shortcut of a particular folder to it. Like It has home folder icon in docky ..I want to have ...
-2
votes
1answer
22 views

Run job at boot and on a schedule from same crontab

I have a process that I need to run on boot and periodically. I've created a file for it in /etc/cron.d/. Is there a way for me to specify that I want @reboot 0,30 * * * *?
6
votes
0answers
19 views

List Kerberos principals with valid TGTs

Is it possible to query my (MIT) Kerberos KDC to return a list of principals who have been issued TGTs that are currently valid? My use case is that I would like to find out which users are currently ...
-2
votes
0answers
12 views

Search and replace string literal with sed [duplicate]

I'm trying to replace a line in my preseed.cfg with a string that contains a bash variable that expands to include a password hash. I don't want to escape every special character in this password ...
2
votes
1answer
31 views

How to get vimchat to work in linux

I added Bundle 'throughnothing/vimchat' to my ~/.vimrc file and ran :PluginInstall. That all ran fine, then I added an account and password to the ~/.vim/Bundle/vimchat/config file like this: ...
2
votes
2answers
45 views

split a file, pass each piece as a param to a script, run each script in parallel

I have a words.txt with 10000 words (one to a line). I have 5,000 documents. I want to see which documents contain which of those words (with a regex pattern around the word). I have a script.sh that ...
4
votes
0answers
12 views

Chrome loses Compose sequences whose last character uses Shift

In Chrome 35.0.1916.153 or 36.0.1985.125, sometimes, my Compose key partially doesn't work. As far as I can tell, combinations whose last character uses the Shift key that don't work. For example, ...
3
votes
3answers
127 views

Interactive command usage reference: do you generally have that on Unix?

The question of why some commands rely on manpages whereas others rely on something like the --help flag for providing command usage reference is not new. There is usually a difference in scope ...
1
vote
1answer
15 views

When using expect: SSHFS Transport endpoint is not connected

When I run my SSHFS connection script from bash, everything works perfectly. However, when I run the same script using the expect utility, I get the following error when I try to access the folder ...
1
vote
0answers
7 views

emacs org-mode clocktable - clock-in clock-out columns

Is there a way to configure the summary clocktable to have two extra columns for clock-in and clock-out times. | Headline | Clock-in | Clock-out | Time | | ...
0
votes
1answer
4 views

XFCE: image as whole applications menu button, not just icon

This is what I want for my applications menu, the whole thing, not just the icon that should sit behind the optional text: What I get when I change the icon is: But what I want is this (edited ...
0
votes
0answers
3 views

Pantheon lost keyboard configurations

I install Pantheon yesterday and now every time startx my keyboard configurations back to us, but the correctly is br+abnt2. So I need to run in terminal (after startx) the command: setxkbmap ...
9
votes
4answers
335 views

vim: hide first n letters of all lines in a file

I am analyzing log file using vim and the format looks like this YYYY-MM-DD HH:MM:SS.USEC PID Name LogText Since Most of the times I don't care about date and time. I want to hide them and just ...
1
vote
2answers
44 views

Secure the content of a hard disk

I have to prepare a computer to give away, and I do not know who is going to use it. The computer has Debian installed, and the HDD is entirely encrypted. All users have their storage on the server. I ...
0
votes
0answers
12 views

FFMPEG Dump From Webcam Without Encoding [on hold]

My webcam is capable of outputting h264 video. I would like to dump this directly to a file with no further encoding, lowering cpu usage. using ffmpeg -f v42l -vcodec h264 -framerate 24 -video_size ...
-1
votes
1answer
19 views

A command showing if I have the right to perform writing?

I'm searching for a command which only says if the current user has r-rights (read) on the file passed as a parameter. This command could be something like haveIRights -x <file> and it has to ...
-1
votes
0answers
24 views

tail -f doesn't follow the file [on hold]

How to catch the problem of such thing: I'm trying to tail -f the log file, /var/log/syslog. But tail -f doesn't work. Doesn't work tail -F. I found the workaround: watch -n 1 -d 'tail -n 30 ...
0
votes
1answer
34 views

Why are man pages blank for non-root users?

. . . And how can I fix that? :-) I'm running RHEL 5 and when I try to view man pages as a regular user, they are blank. I've tried man man > manman.txt; cat manman.txt and there is no output, ...
8
votes
1answer
134 views

How to append multiple lines to a file with bash, with “--” in front of string

Question very similar to How to append multiple lines to a file with bash but I want to start the file with --, and also append to the file, if possible. printf ...
1
vote
1answer
36 views

How to use Wireless Network in Virtualbox?

I'm trying to enable Wireless on VirtualBox in my Ubuntu 14.04. I use a Kali Linux as the guest OS, but this OS not show the wi-fi when I connect it. After starting the guest OS, it still does not ...
0
votes
2answers
29 views

Locked out of SSH on LAMP server but have SFTP access

I made a mistake in /etc/sshd_config so have locked myself out of my remotely hosted server running Centos 6. It's running Apache and I have FTP access to /var/www and I know the root password. To ...
11
votes
4answers
2k views

How does the OS know that a command needs sudo?

When you run an executable, sometimes the OS will deny your permission to. For example running make install with the prefix being a system path will need sudo, while with the prefix being a ...
2
votes
1answer
21 views

mysql fail to start bash_completion errors

So after upgrading my debian system, mysql does not start anymore with command "service mysql start". I get: Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' ...
0
votes
2answers
61 views

Difference between Unix OS Types [on hold]

What is the difference between Linux, AIX, Solaris, MAC. Aren't these all some kind of Unix flavors ? Why do we need so many types. Why can't there be just one type ?
1
vote
1answer
16 views

X11 Issues running with Terminal.app

I am trying to figure out why I can't use ghostscript or ghostview (or any other X11 applications) when I try to call them in the Terminal. I am using bash, and I also used Fink to get the packages I ...
1
vote
1answer
10 views

Get report of the gui application processes

I want to list main applications processes report in this format ps -e -o pid,comm,pmem,pcpu,uname To filter main GUI applications wmctrl -pl is the only way I can get processes ids.its great if ...
2
votes
3answers
50 views

moving a (file | directory) while avoiding filename collisions

I have a bash script that moves files from a number of different locations to a folder named completed. I want to avoid overwriting previous files, so in the case when the name of a file (for ...
0
votes
1answer
14 views

For a given directory, how do I concatenate the tail end of recently modified files to a new file?

In case there's a better solution to the problem, my goal is to be able to quickly analyze ALL recent apache activity in /usr/local/apache/domlogs. The usefulness of this is when the server load is ...
0
votes
1answer
10 views

Select drive partition table in preseed file automated Debian install

I am using a preseed file for my Debian installs. I am using 1TB drives, and I would like to use MS-DOS partition tables. It is defaulting to GPT. Is there a way to choose which type of table to ...
1
vote
2answers
41 views

relation between chmod and sudo on an executable file

What is the relationship between chmod and sudo on an executable file for a user? Are the cases that "a user needs sudo to run an executable" the same as the cases that "chmod hasn't set the ...

15 30 50 per page