0
votes
1answer
16 views

Is it possible to schedule a cron job to run fortnightly?

Like it says on the tin: is there a way to schedule a cron job to run every fortnight? (One way I can think of, within crontab, would be to add two entries for "date-of-month"...)
1
vote
1answer
25 views

Combine 2 prompts into one, showing error condition in red/orange

Not a very interesting question, but the answer could be beneficial to a lot of users. ;-) As everyone, I have a customized prompt. Mine turns red for root and is green for a normal user and a few ...
0
votes
2answers
18 views

Bash: Access parameter passed to last command

This is a situation I often find myself in: mkdir /Some/really/long/path/to/a/directory/ cd /Some/really/long/path/to/a/directory/ I know that ideally you would cd /Some/...etc.../a/ and then mkdir ...
1
vote
2answers
51 views

check if time is more than an hour?

I am trying to check device run-time and if it is more than an hour returns an error, but the code returns false positive intermittently.in firstRun.sh I export time as: export START_H=`date +%H` ...
0
votes
0answers
10 views

Symbolic link not allowed apache 2.4 chiliproject

Few hours ago I upgraded ubuntu 13.10 to 14.04 LTS. I have 1 problem with chiliproject application wich running on Rails. I got error 403 when I'm trying to access my chiliproject application. In ...
0
votes
1answer
19 views

what exactly is present in CMOS when system is turned on for first time?

also how does cmos gets all the hardware information, parameters and stores them? Does Bios writes them into CMOS or some other hardware? Bios has facility to do POST. Is this POST anyhow related to ...
0
votes
1answer
20 views

find returns weird file order on RHEL but not on OSX [duplicate]

When I enter find . -iname "[0-9]*.nii" on my OSX machine it returns: ./03_Rest_fcMRI/9793_01_03_1.nii ./04_VEMP/9793_01_04_1.nii ./04_VEMP/9793_01_04_2.nii ./05_Tapping/9793_01_05_1.nii ...
1
vote
0answers
14 views

How to disable AC power supply from CLI

This article among others suggested the following to prolong battery life: Keep cool. Operate in mid SoC of 20–80%. Prevent ultra-fast charging and high loads (most Li-ion) The main issue here ...
1
vote
1answer
16 views

tty problem: binary mess instead of “text good data”

I am trying to use a GPS over moxa Uport 1110 usb-to-serial device. The driver of UPort was installed OK, and GPS sends NMEA (text) data. However, when I issue command cat /dev/ttyUSB0 my terminal ...
0
votes
1answer
12 views

Using ftok for message queue

Referring the tutorial on system V message queue. It contains the following sample for ftok: #include <sys/msg.h> key = ftok("/home/beej/somefile", 'b'); msqid = msgget(key, 0666 | ...
1
vote
0answers
15 views

What does the “Shared” Field indicate in “free” command? [duplicate]

I want to know what "Shared" Column indicates in the "free" command. total used free shared buffers cached Mem: 3818 3677 140 37 ...
0
votes
0answers
9 views

How do I choose the right distributed file system software for my Minecraft server?

I run a popular Minecraft server, and I plan to setup a hyperscale infrastructure that has the ability to scale more than what it can do right now. I currently have 3 dedicated servers with ...
1
vote
0answers
9 views

How to create a rule on IPCop firewall for bittorrent trafic to work properly?

I've been trying to use my favourite torrent client (µTorrent) after setting up my IPCop (last update 2.1.9) and it warned me that my router/firewall was blocking the traffic and that I had to open a ...
0
votes
0answers
6 views

Virtualization on Intel Edison

I want to do virtualization on the Edison. (Edison has vt-x.) On Yocto linux there isn't anything in the repo that is useful. On Ubilinux there is KVM but there is no kernel module in aptitude package ...
0
votes
1answer
7 views

Setting ServerName to suppress Apache warning message with multiple domains

When I restart/reload/whatever apache2 (2.4) on Ubuntu Server 14.10, I get the error message that the server could not determine the FQDN. I had this set previously, no big deal, but I now have two ...
-3
votes
2answers
22 views

What is the exact difference between “/” and “%” in the expr command?

I want to know the difference between "/" and "%"! When I type and run the following command I get 0: expr 4 % 4 But when I run same command and replace "%" with "/" I get 1 expr 4 / 4 Thanks
1
vote
0answers
8 views

Why did the time format in Steam chat change after I started using xinit?

The time format in my Steam chat used to look like this: 23:59 After I stopped using Slim and started using xinit, it looks like this: This only displays the hour and the time zone, which isn't ...
1
vote
0answers
8 views

how to change cifs timeout

Happens when from my laptop I change wifi network that I've to wait 5 minutes before that I can umount cifs share. mount -t cifs //ip/share /home/user/net/share -o user=user,pass=pass I didn't ...
3
votes
4answers
109 views

Split single string into character array using ONLY bash

I want to split 'hello' into h e l l o in an array using only bash, I could do it in sed with sed 's/./& /g' but I want to know how to split a string into an array in Bash when I do not know what ...
1
vote
3answers
119 views

Echo command with AND operator doesn't exit

echo hai && echo bye prints hai bye while echo hai && echo $? prints hai 0 When the first echo command's return value is 0, how does the echo statement after AND operator ...
2
votes
1answer
151 views

Why does Chromium use so much disk space on Gentoo Linux?

I am a newbie on Linux, and I have chosen Gentoo for my Linux distribution. I installed it in VirtualBox for practice purposes only, so I just gave it 10GB of disk space. Yesterday when I tried to ...
0
votes
0answers
9 views

Recursively replace a specific occurrence of a string in some files [duplicate]

Inside a folder, there are in certain files, a specific URL string (that is equal in all of them), that I need to replace with another URL string. What can I do?
0
votes
1answer
6 views

How to redirect with nginx

I have some http servers running in different ports, but I want to access them this way: 192.168.178.42:80/foo to access 192.168.178.42:8080 192.168.178.42:80/asdf to access ...
1
vote
0answers
6 views

Touch-friendly LXDE app launcher

I am about to make a tablet with a raspberry pi and would like an interface for launching apps that is touch-friendly. The gnome app launcher seems very well suited for this to me. Because of the ...
1
vote
0answers
9 views

Downgrading Linux Mint kernels from 3.18.2-031802-generic to the previous one?

I have Linux Mint 17.1 Cinnamon version on my notebook HP Compaq 15-h050nl and about 1 month ago I upgraded the Linux Kernels to the current version (3.18.2-031802-generic). After done that, I had 2 ...
2
votes
1answer
17 views

Identify SSH public key on remote end's shell session (no agent or no identities in agent)

I know this way to find out which key was used to authenticate when using keys stored in a key agent: ssh-add -L 2>/dev/null | awk '{print $1}' | while read identity; do grep -v '^#' ...
1
vote
1answer
47 views

How to merge two files in the same row?

I have two files. file1: Dave 734.838.9800 Bob 313.123.4567 Carol 248.344.5576 Mary 313.449.1390 Ted 248.496.2204 Alice 616.556.4458 file2: Bob Tuesday Carol Monday Ted Sunday ...
2
votes
1answer
33 views

When does one need to export a variable? [duplicate]

Eons ago, when I first started assigning variables in bash, it was something along the lines of: export EDITOR=nano export PS1=something ...and the likes. And the habit of exporting has kinda stuck ...
0
votes
0answers
10 views

Installing Linux mint on a computer running ElementaryOS [duplicate]

I would like to add linuxmint to my laptop running ElementaryOS. I was wondering what was the best way to partition my HDD: Shall I use a common partition for the /home folder or use two different? ...
1
vote
3answers
77 views

How to filter some files out of my directory?

I have some files in my directory. They can be classified into two categories: the files' name pattern in class one are like 1000-24-1-7-1 that have five numbers separated by four dash; the files' ...
4
votes
2answers
26 views

How to prevent automake from overwriting INSTALL?

I'm working on a project that has a custom INSTALL file. Running automake --add-missing (or more precisely, autoreconf -i) will generate the GNU default INSTALL file, and overwrite our file with it. ...
3
votes
1answer
9 views

Find repository names from gitolite info output

How do I extract the names from the gitolite info command output, for further piping into a script? I'm writing a migration script to migrate all my repositories from gitolite to a Gitlab server. ...
1
vote
0answers
10 views

Java programs steal focus in X11

I run IntelliJ IDEA & some other Java GUI apps on my linux box. Every one of them tends to steal focus when launching up, and doing it in stealthy way. E.g.: I run IDEA, it starts up in ...
0
votes
0answers
3 views

centos 7 installation with customized bridge module

I have installed latest Centos 7 x64 edition in my server. I need to modify the linux-bridge module with some customized changes and use it as a default bridge module. Currently I am building centos ...
2
votes
1answer
31 views

Moving /usr/lib without breaking everything

I want to move this directory in following way: sudo mv /usr/lib /tmp/bad_files/ sudo mkdir /usr/lib sudo mv /tmp/bad_files/lib/* /usr/lib/ Why do I want do do this? I have filesystem-related ...
1
vote
0answers
8 views

grub-mkconfig generates duplicate entries for an Ubuntu/Gentoo dual boot setup

I'm currently running Ubuntu (Xubuntu, specifically) as the primary OS on one of my systems. I've been building up a Gentoo installation on a new logical volume on the same system and I'm at the point ...
1
vote
0answers
17 views

How to set Sunday as the first day of the week in Gnome Calendar, Fedora 21

How to set Sunday as the first day of the week in Gnome Calendar, Fedora 21? After some searching, I found the following solution: Open as a root the /usr/share/i18n/locales/en_US. Edit the value of ...
1
vote
0answers
23 views

Is vmlinuz and bzImage really the same?

I just stumbled upon this page, which says that bzImage and vmlinuz are identical. bzImage is then copied using the cp (i.e., copy) command to the /boot directory and simultaneously renamed ...
3
votes
0answers
12 views

Where do I put my web services? [on hold]

I'm administrating my server since a few year but I'm looking for good practice like: What is the best place web service like my wordpress website files? My etherpad-lite instance? Which user shall ...
0
votes
2answers
13 views

nautilus doesn't display full disk space

Hello I am having an issue with Nautilus, it will not recover disk space. My home partiton is on /dev/sda2 and running fdisk returns Device Boot Start End Sectors Size Id Type ...
1
vote
1answer
33 views

How can I have a system boot in to a root session and then run a command within that session?

I have a GNU/Linux system with one account, the root account. When I boot the system, I want it to automatically log in to the root account and then run a 'telnet' command within that session. How can ...
1
vote
1answer
8 views

Debian Wheezy, ejabberd and forward secrecy

After validating of my public XMPP service on xmpp.net, I've got the error: Warning: Server offers no forward-secret ciphers. Grade capped to A-. Is there an easy way to enable these ciphers? As ...
0
votes
0answers
8 views

Turn on bluetooth on login screen

Is it possible to have bluetooth turned on and use a bluetooth keyboard when at the login screen? So far I only managed to start the bluetooth daemon when logged in. I added it to systemd with ...
0
votes
0answers
11 views

Restore torrent after OS installation

I have a bunch of torrent files on an external hard drive, downloaded with Transmission (on Elementary OS). After upgrading / re-installing my OS, I would like Transission to restore the torrent ...
3
votes
3answers
85 views

What is the correct way to access a specific help file in Vim?

In Vim, if you type :help into the status bar, you get a window with this (contents truncated to the relevant bits): *help.txt* For Vim version 7.4. Last change: 2012 Dec 06 ...
0
votes
2answers
12 views

Unable to perform write & execute actions on ntfs partition. Not even with root privilege. Using arch linux.

Unable to perform write & execute actions on ntfs partition. ls -l shows that user have only the read permission. Group any others have non. i tried to copy some text from home to windows ...
0
votes
1answer
12 views

Mount external hard drive automatically

I have an external hard drive (WB My Passport), connected via a USB port. My OS is Elementary OS Freya on a Dell Vostro 1510. Currently, in order to mount the drive, I have to open the file manager, ...
2
votes
1answer
26 views

Is there any way to exit “less” follow mode without ^C?

Often times I find myself in need to have the output in a buffer with all the features (scrolling, searching, shortcuts, ...) and I have grown accustomed to less. However, most of the commands I use ...
0
votes
0answers
5 views

Map Home to External Drive

Whereas I have my OS (in this case, Elementary OS Freya) installed on my non-partitioned internal hard drive, I have an external hard drive with /Documents, /Downloads, /Movies etc. where I store all ...
1
vote
0answers
7 views

Postfix Mail Relay Server with TLS

I currently have Postfix set up on a Centos 6 server, as a simple forwarding service. Currently in /etc/postfix/main.cf I have set the following: smtpd_client_restrictions = ...

15 30 50 per page