0
votes
0answers
3 views

Search and replace string literal with sed

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 ...
0
votes
0answers
3 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: ...
0
votes
0answers
4 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 ...
1
vote
0answers
3 views

Chrome loses Compose sequences whose last character uses Shift

In Chrome 35.0.1916.153, 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, 'e→é and /=→≠ work ...
2
votes
1answer
9 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 ...
0
votes
0answers
4 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
4 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
2 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 ...
3
votes
1answer
13 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 ...
0
votes
2answers
19 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. ...
0
votes
0answers
5 views

FFMPEG Dump From Webcam Without Encoding

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 ...
0
votes
1answer
16 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 ...
0
votes
0answers
18 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
0answers
21 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, ...
5
votes
1answer
33 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 ...
2
votes
1answer
19 views

How to use Wireless Network in Virtualbox?

I'm trying to enable Wireless on VirtualBox in my Ubuntu 14.04 for I use a Kali Linux, but this OS not show the wi-fi for I connect it. And after I on my OS do not show the wi-fi I already ...
0
votes
2answers
17 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 ...
4
votes
3answers
255 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 ...
1
vote
1answer
12 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
47 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
13 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
6 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
35 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
0answers
6 views

How to disown and output to /dev/null every GUI application?

Is the any way to make every GUI application to be disowned and produce no output? Some configuration which would interpret: firefox as: firefox &>/dev/null & disown But it would ...
0
votes
1answer
11 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
0answers
4 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 ...
0
votes
2answers
27 views

relation between chmod and sudo on an executable file

what are the relations 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 execution ...
0
votes
3answers
29 views

cat /dev/null emptied my log file but size did not change

I'm quite new to Unix. Using Solaris 10 I faced the below issue. There is a large log file with size 9.5G. I tried to empty the file using the below command. # cat /dev/null file_log.txt By doing ...
2
votes
0answers
18 views

Hide Vim fold characters

When using Vim to write prose my folds look like this: + # Section A expanded | Lorem ipsum dolor sit amet, consectetur adipisicing elit, | sed do eiusmod tempor incididunt ut labore et dolore magna ...
2
votes
1answer
16 views

notify-send not working under ssh

Maybe this is answered somewhere else, but I didn't see it. I am running Ubuntu 14.04. When I SSH into my machine, for example: ssh <user>@<machineip> notify-send "Hello" I don't see ...
0
votes
0answers
15 views

What are differences between directory order and alphebetic order with `ls`? [duplicate]

What are differences between directory order (-U) and alphabetic order (by default) with ls? They return the same order of a dir's contents to me.
0
votes
0answers
6 views

After Logoff from any user getting black screen

Presently I'm suffering a new problem. When I log-off my Linux system from any profile it's showing a black screen (graphical view has gone). After that I'm not able to login graphically. If I ...
1
vote
2answers
24 views

Choose a terminal emulator from Java [duplicate]

I am writing a platform independent Java console tool and within which will have to execute some commands in separate independent terminal at runtime. However, I need to know which terminal should I ...
0
votes
1answer
19 views

Question regarding forks and wait() [on hold]

I am reading a textbook called "Linux Programming Interface" by Michael Kerrisk and there's a piece of code and creates children depending on command-line arguments and then waits for its termination. ...
1
vote
3answers
21 views

waiting for network in a bash script

I'm running a script that relies on network being up and a network share be mounted. The script runs on login (which happens automatically after boot). The problem is that by the time the script runs, ...
0
votes
0answers
5 views

Communication between two kernel drivers

I have custom embedded hardware i'm working on which runs linux. I've implemented a spi kernel driver to handle spi access to a eeprom which is exposed to userspace. Now i have another kernel driver ...
1
vote
0answers
5 views

Get OpenSSL FIPS Module Version Number

Is there a way for a user to determine what version of the FIPS module was compiled into OpenSSL? When I say "as user", I mean is there some functionality buried in the command line interface to get ...
3
votes
1answer
31 views

How to pipe a remote file to stdout over scp or sftp?

Using ssh, it is easy to print the contents of a file using ssh host 'cat file.txt' When ssh is disabled, and only SFTP is enabled, running the previous command gives the following error: ...
0
votes
2answers
30 views

List files of certain type under a dir?

If you want to list just directories (in the present directory) use ls -d */ What if you want to list just ordinary files, just executable files, or just soft links, or files of any other type? ...
1
vote
3answers
32 views

Command to 're-apply' previous command?

Is there an easy way to re-apply a previous command to a new command line entry? Say I typed in chmod u+r,g+x file.txt but forgot the sudo. Could I simply type sudo <some easy symbol>'? ...
0
votes
0answers
11 views

'xorg.conf' and hybrid graphics

Is there any sane way to be able to configure X server and have working hybrid graphics at the same time? Whenever I add "xorg.conf" X server stops loading driver for second (discrete) GPU. ...
1
vote
0answers
38 views

How to create CSV file without unnecessary spaces

I use the xls2csv binary in order to translate XLS doc to CSV in my linux red-hat machine, example: ( from man page ) xls2csv -x "1252spreadsheet.xls" -b WINDOWS-1252 -c "ut8csvfile.csv" -a UTF-8 ...
0
votes
0answers
18 views

I may or may not have broken grub during a sudo apt-get upgrade [on hold]

I'm very new to ubuntu and server administration as a whole, so please forgive my ignorance. I just did sudo apt-get upgrade and a gui came up saying something like this A new version of ...
1
vote
0answers
15 views

Real vs Actual memory in Xymon/Hobbit

What is the difference between real and actual memory usage in xymon ?
2
votes
2answers
30 views

Why is NetworkManager package name upper case?

All other software packages are lower case, so why NetworkManager upper case?
0
votes
1answer
15 views

Upgrading Linux (Fedora) with LUKS encrypted volume

I have FC18 on a LUKS/dm-crypt encrypted hard disk. I'd like to upgrade the system via a FC20 dvd. I looked around a bit and it seems that upgrading the system via the installation procedure from the ...
3
votes
0answers
12 views

Get notified from avahi

After looking for a zero-conf browser valid implementation I realised that inside my linux machine (ubuntu) I already have avahi and typing: avahi-browse -alr I get a complete list of all devices ...
-1
votes
0answers
30 views

How to I create a file with a sorted list from users that have mail

I need to create a file ~/you have mail, it needs to contain a sorted list of all users on my local system which currently have mail in their "Inboxes" (i.n., their spool of delivered but no yet read ...
0
votes
0answers
9 views

Why absolute symlink on SAMBA share is followed directly by CIFS mount?

If an SMB share has a symlink with an absolute path /share/latest/dir -> /share/data/201407 then Windows clients can access files by link with no problem. dir \\smbserver\share\latest\dir\ ...

15 30 50 per page