-1
votes
0answers
11 views

Centos Apache virtualhost bugs when not using www

I have these extra lines in default httpd.conf: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/var/www/html" ServerName maindomain.com </VirtualHost> <VirtualHost ...
1
vote
1answer
11 views

OpenBox Mouse binding for dragging window to screen edge

I am trying to edit the lxde-rc.xml file (in ~/.config/openbox) so I can implement Window snapping like in Microsoft Windows. When a window is dragged to the right edge of the screen, it maximizes to ...
-2
votes
2answers
44 views

my linux pc not pingable using hostname

From a remote machine I am able to ping my computer by its IP address, but not by its hostname. How can I make it accessible by its hostname as well?
1
vote
0answers
28 views

BTRFS RAID6 array is broken, how do I fix it?

I have a server running a btrfs raid 6 array which seems to have broken. When try to mount it I get the following error message. I don't know how or why it broke maybe a power outage or something (it ...
0
votes
5answers
66 views

Appending One File to the Second Until End of File

I have two files. The first is just a single number. This number is calculated and changes every time. The second file has a bunch of columns, and I do not know the number of rows (which can change). ...
1
vote
1answer
29 views

Is sed run as a different user?

I have a sed script that change some content in /etc/shadow. The actual change isn't important, will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow sed: ...
-1
votes
0answers
13 views

How to use BlueZ tools? [on hold]

I successfully compiled bluez-libs-3.36 and bluez-utils-3.36, and got the programs sdptool,hcitool and hciconfig. I copied them to my device and exectued chmod a+x on all three of them. But if I try ...
1
vote
2answers
113 views

Can I log in into a system user after I create him?

On an Ubuntu machine, if I run the following command: adduser --system --no-create-home system-user I create a system user named system-user without home directory with /bin/false as the shell. This ...
1
vote
0answers
31 views

Debian Jessie, copy file on NFS share (autofs) at shutdown

I'm on Jessie 8.1 so I use systemd to launch a service at shutdown. My service uses a script to copy a file on a NFS share (mounted by autofs). It doesn't work, I know the script can copy a file on ...
0
votes
1answer
52 views

How to grep the following lines from a file?

I have a file which has the names of many files in a directory in the following format: A20150824.0950-0955_jambala_CcnActiveSessionCounterJob A20150824.0945-0950_jambala_CcnActiveSessionCounterJob ...
1
vote
1answer
44 views

How to make boot output verbose?

I use to enjoy watching my red hat then debian then ubuntu machine boot, the boot process was not hidden from my view, now it is, in most of all distros, now, I know I can somehow connect a terminal ...
-1
votes
0answers
18 views

How to create standard Linux Mint in USB stick?

I want to install Linux Mint to USB stick and boot from it. Full, standard (not Live USB) install. I have now Live USB stick in my Mac but it don't remember any changes so i want to change this live ...
1
vote
1answer
26 views

Using rename in the terminal to remove not accepted Windows characters

I have a folder full of files. Some of these files contain characters in their name that are not allowed by Windows. How can I use the command rename to find, and eventually remove all these ...
0
votes
0answers
16 views

Changing the permission of utmp and wtmp

I would like to change the permission of /var/log/wtmp and /var/run/utmp to 660 so that users cannot gain more info about the system (in this case, the logged in users). Does this have any negative ...
1
vote
1answer
8 views

upstart jobs - privileged vs unprivileged

On one of my VMs, some upstart jobs were failing, and when I checked df, showed that I had run out of disk-space (Use% was 100 on /dev/sda1). What I did not get is: the jobs which were running with ...
3
votes
1answer
213 views

Why does the fish shell need to start a daemon process?

I just started playing with the fish shell, and I really like is so far. However, I can't figure out what the purpose of fishd is. So, why does fish need to start up a daemon process? What is the ...
1
vote
2answers
19 views

Perl script in bin that calls a file

I have a script ~/bin/script $ cat ~/bin/script #!/bin/bash perl -pe 's/loremipsum/`cat ~/foo/bar/file.txt`/ge' -i ~/path/to/target.txt The script is supposed to replace every instance of ...
0
votes
0answers
23 views

How to resolve black screen issue with Xnest/XDMCP

My environment consist of a Ubuntu 14.04 LTS VM. This is acting as the Xnest server on socket :2 and port 6002 (as seen by netstat). I'm running the Xnest as client on a Fedora 20 VM. The Ubuntu ...
0
votes
0answers
2 views

SASL fails to with against LDAP

So I am running into a whirlwind of issues with my cyrus install. I am setting up a multi-domain kolab groupware solution. I am on centos 6.7 I am getting this flooding my error logs when I try to ...
2
votes
1answer
35 views

Is there a way of getting logs for startup processes in /etc/init.d?

Is there a way of getting logs for startup processes in /etc/init.d? I am running Raspbian (Debian Wheezy). dmesg shows boot log, but does not go far enough. Some time ago I added a script to start ...
0
votes
0answers
6 views

Cronjob and Mapcrafter for Minecraft not running the renderer

I am using two Raspberry Pi 2 computers: one to run a Minecraft Server, one to run Mapcrafter (http://mapcrafter.org/index) to setup and update the server's map on my Apache2 server. I am using cron ...
0
votes
1answer
13 views

How to use tune2fs?

I want to adjust the time interval between ext2, ext3 and ext4 filesystem checks to 180 days? I know that I have to use tune2fs -i 180 but I am not sure about the arguments
0
votes
1answer
10 views

zip files in a directory based on a pattern before moving to archive location

For example in data directory I have files like CODE_A1_timestamp.txt, CODE_A2_timestamp.txt and DOCI_A1_Timestamp.txt. I only need to zip files with pattern CODE_A1* i.e. CODE_A1_timestamp.txt file ...
0
votes
3answers
41 views

combining n number of files with cat command

I have n number of files, I have stored filenames in a list and I want to combine them. I am doing this manually, i.e. If n=3 cat ${filename[1]} ${filename[2]} ${filename[3]} > newfile If the ...
0
votes
1answer
22 views

sed command to delete variable number of lines

To delete the first 10 lines from a text file, the following command is used: sed -i -e "1,10d" filename what if I want to delete n number of lines, where n is a variable. i.e. I am using ...
1
vote
1answer
39 views

Missing root VG, dropped to an initramfs shell. [SOLVED]

My Linux Mint 17.1 (64-bit) uses LVM on its OS drive (an SSD). I must have done "something" to wreck my system, because last time I rebooted, the boot failed. Instead, I got the message "Alert! ...
1
vote
1answer
30 views

Printing in Debian Jessie Without avahi

I'm looking for a way to print to a networked HP LaserJet 600 M602 in Debian Jessie and I can't seem to find a solution that does not pull in avahi as a dependency. I don't want avahi because it ...
25
votes
5answers
2k views

Why pipe to cat only to redirect? [duplicate]

I occasionally see things like: cat file | wc | cat > file2 Why do this? When will the results (or performance) differ (favourably) from simply: cat file | wc > file2
0
votes
0answers
12 views

3 TB ext4 partition performance issue

I have deployed Centos 6.6 VM based on vSphere ESXi 5.5, it consists of 2 VMDK (virtual disks): 1st vmdk is for System / with 25 GB second vmdk /var is a 3TB / ext4 underlying storage is RAID 5 ...
0
votes
2answers
29 views

Bash script error [on hold]

I created this bash script based on answers I found here: If [[ $(autorep -J jobname | cut -c108-110 | sed -n '/ST/!'p | sed '/^$/d' | sed -n '/_/!'p) == *ST* ]]; then echo "Status is Started" fi ...
0
votes
0answers
12 views

POR Recovery Count increases at every reboot

I have a Samsung SSD in my notebook. In the last week I tested some linux distros, because I want to replace windows 7, but... I find a weird thing: every reboot from linux increases the POR Recovery ...
2
votes
2answers
36 views

How can I make the `cal` tool in OSX highlight the current day?

In Ubuntu and Fedora, when I type cal on the command line I get an ASCII calendar with the current day highlighted. In OSX, when I type cal, I get an ASCII calendar but no day is highlighted. How ...
0
votes
3answers
31 views

How can I find where the Location of SSL key file is?

I inherited a RedHat server and I'm trying to find the SSL key file that was used to generate the self signed cert so I can make a CSR. From what poking around I've done, I can't find it in any of ...
-1
votes
0answers
24 views

Request a second available IP from the DHCP server? [on hold]

I have 3 servers A, B and C that already have IP addresses assigned by the DHCP server. I wanted to request a fourth IP from the DHCP server that I can use as a floating IP between my service. Is ...
0
votes
0answers
20 views

Why does apt-get upgrade not install the latest PHP version?

I usualy do apt-get update apt-get upgrade in order to keep my Debian 8.x server up to date. I also tried apt-get dist-upgrade, however, my PHP version is still the same one that I installed months ...
2
votes
1answer
29 views

Openssl passing a binary pass phrase as a argument

This openssl command is working fine for me. openssl aes-128-ecb -d -in encrypted_base64.txt -K 4D1D75237C31E7732030C69F209F23154418373335E049C4F567C7B6D422ABD0 -base64 How would I do the ...
1
vote
2answers
60 views

Cron only occasionally sends e-mail on output and errors

On Debian 8.1, I'm using a Bash feature to detect whether the stackoverflow.com website is reachable: (echo >/dev/tcp/stackoverflow.com/80) &>/dev/null || echo "stackoverflow unreachable" This is ...
1
vote
0answers
7 views

What hash algorithms can I use in preseed's passwd/user-password-crypted entry?

When it comes to passwd/user-password-crypted statement in a preseed file, most examples use an MD5 hash. Example: # Normal user's password, either in clear text #d-i passwd/user-password password ...
0
votes
1answer
23 views

Driver for Broadcom 14e4:43ba chip

I just got a Macbook Pro 12,1 which comes with the Broadcom 14e4:43ba chip (output from lspci -nn -d 14e4:). What I've tried First, I built the latest kernel (4.1.6) from source. According to this ...
0
votes
1answer
15 views

Can I make sure history logs all execution?

Please forgive the ambiguous nature of this question but I was wondering if there's a way to make sure that all commands executed by some host are logged into history. In my case, if I send a command ...
2
votes
1answer
39 views

How to use `yes` with `xargs -p`?

Let's say I have ls | xargs -n1 -p rm, how do I use yes or yes n to automatically answer the questions generated by the -p flag? I tried yes n | (ls | xargs -n1 -p rm) but didn't work. P.S. I tried ...
4
votes
1answer
37 views

Reason for change in ctime when the file content is modified

I understand that ctime changes when the file metadata or the file content is changed and mtime on file content modification. I would like to know the reason for updating ctime when the content of ...
0
votes
0answers
9 views

Troubleshooting radeon drivers in Debian vs. Trisquel vs. Ubuntu

Using an ATI 5770 on a 2560x1440 monitor. When I first install Ubuntu 14.04 I'm given the full 2560x1440 resolution. It says it's using the free drivers and that closed source ones are available. In ...
0
votes
1answer
22 views

Script to remove certain span elements from an HTML file

I want to write a script that completely removes every instance of a particular span class from a given HTML file. For example, if my undesired span class is "foo" then running my script on the file ...
0
votes
1answer
12 views

Ubuntu 14.04.02LTS resolvconf -u creates an invalid line “nameserver Google's” in resolv.conf

NetworkManager is not installed. /etc/network/interfaces had a group of lines as follows; ###################### # EXTERNAL INTERFACE # ###################### auto eth2 iface eth2 inet static ...
3
votes
1answer
44 views

“Display all <num> possibilities? (y or n)” for ls command

When I attempt to tab complete a filename in the bash prompt, and the output would be many (>100) filenames, the shell asks Display all <num> possibilities? (y or n) Can I replicate this ...
1
vote
1answer
27 views

How to suppress exit code of finished background jobs

Is there a way to hide the exit code of the background jobs that have finished? For example, if I run: sleep 5& After the 5s, if I hit return the terminal gives me: [1]+ Done ...
0
votes
0answers
3 views

tcp_outgoing_address: cannot connect to website

I have a LinuxMint running in a virtual box. I have installed a squid3 proxy server and it is working. However, if I want to add a tcp_outgoing_address it is not working. I am using the default ...
0
votes
0answers
6 views

Elementary OS freezes on clicking reboot

I installed Elementary OS today next to Windows 10, It runs (even though I have to start it up using advanced startup options(grub not showing, but that's another problem)) but when I try to shutdown ...
-1
votes
1answer
27 views

replace numbers with zero while we have the lines number [on hold]

I am trying to write a bash script (containing awk or sed ) to replace some numbers with zero. for example : replace line 3 second and third number, and line 4 first and third number and line 5 first ...

15 30 50 per page