4
votes
2answers
6k views

HISTTIMEFORMAT modification. In /etc/bash.rc or /etc/profile? [duplicate]

I'd like to add the date/time to the output of the history command in CentOS/RHEL 6. I would like this to apply to all users on the machine by default. This itself is easy. It seems to just be a case ...
2
votes
1answer
56 views

Multiple Lan interfaces on one VM rather than multiple VM

I'm looking if it's possible to give rights, to only allow the use of one network interface to a specific user on a Linux distribution. My use case: I want, for my studies, testing the ...
1
vote
1answer
59 views

Having several qdisc for each device, which is the first to process?

I have read about queuing disciplines here http://lartc.org/. Having this traffic shaping policy: .... qdisc pfifo_fast 0: dev ppp0 root bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc ...
0
votes
1answer
1k views

How to check whether my cron job for backup using tar was succesfull [closed]

I have a cron job to tar backup websites and databases and upload the backup to a NAS. Instead of checking the tar files on the NAS. Is there any way to check if the tar backup process completed ...
10
votes
1answer
14k views

How do I remove acpi Warning on boot?

I have this message in dmesg log with linux 3.11.6-1 (2013-10-27) (debian version). I wonder how to fix/remove it? [ 5.098132] ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO ...
3
votes
2answers
900 views

breaking from a program running in an interactive session in a screen window

I am launching R (an interactive program) in a screen window in a remote session: ssh me@.. screen -S R_ProjectName R In the R session, I would like to break execution. Normally, this would be ...
2
votes
2answers
1k views

Sabayon - mysql (and other services) won't start

It's a fresh install of Sabayon Linux. I installed mysql (equo install dev-db/mysql), configured it (emerge --config ...), but it doesn't start using /etc/init.d script: # /etc/init.d/mysql start * ...
3
votes
2answers
955 views

Create Zip for each subfolder but containing only matched files

I am trying to figure out how to create a zip file for each subfolder containing only files that match my criteria. For instance I have: Folder1 Folder2 Folder3 Each folder contains the same set ...
4
votes
1answer
151 views

date modifiers explained

Again, I found some interesting I don't understand in an info page, in info dateto be precisely: An optional modifier can follow the optional flag and width specification. The modifiers are: ...
2
votes
2answers
2k views

Free space: 0 bytes and files full of data shown as empty

I don't know what's going on. The last evening I left my computer with about 700MB of free space on the system partition and today there is no free space on disk, moreover a lot of files containing ...
1
vote
1answer
75 views

Migrating from one linux install to another: How to keep the second disk around?

I've got a linux box running Fedora 19 that I want to move to CentOS 6.4. Rather than trying to do something fancy with the current disk (which has also accumulated a lot of sludge over the years), ...
2
votes
0answers
102 views

Allow internet access to public subnet

I'm running ESXi and received a public subnet from Hertzner.de . I've setup everything by using a 'router'-vm and different client-vm's. These client VM's can access the internet through the router-vm ...
5
votes
2answers
3k views

Return to X session after Ctrl+Alt+F1

What is the command to return to the graphical desktop after entering the terminal mode with Ctrl+Alt+F1? I need it for operating my Raspbian.
2
votes
1answer
362 views

shell script to append ID for newusers command

I am in the process of creating 60 users locally in a linux machine. I wanted to do it automatically and so I found I can use the newusers command to add the users in batch. I have the users and ...
2
votes
0answers
272 views

Squid cache problem

If I put in my test_site acl (deny access policy) a site (i.e, www.aaabbbccc.com) which nobody ever accessed and do a squid -k reconfigure, Squid then appears to correctly log the site. I then ...
2
votes
1answer
30 views

Replace output occurrences

Let's say I have this output: 0001 0002 0003 0004 0005 and I want to replace the first two zeros (00) with (01). What is the simplest way to achieve this?
5
votes
2answers
847 views

How do I filter a log to only the lines between two times?

I'm working in Unix. I'd like to fetch information from a log in a specified time range for the current date. For example I want the data from a log file of today's date from 00:00 to 09:00. Sample ...
4
votes
1answer
575 views

Oh-My-Zsh overriding my function?

I use ZSH with Oh My Zsh and I am trying to define a function called git, as such: function git() { echo "I'm happy because I am executed!" } I have placed the function definition in ...
2
votes
1answer
7k views

NFS Mounting Error

From ServerA I shared directory /u001/app/oracle/FolderA and trying to mount this on SeverB under /media Contents of ServerA /etc/exports file /u001/app/oracle/FolderA ServerB(rw,sync) When I ...
11
votes
1answer
4k views

What is the difference between start-stop-daemon and running with &?

I am setting up a service in /etc/init.d. I am looking at various scripts in there, some are implemented with start-stop-daemon ... and some with /path/to/script &. All of them save the pid in a ...
1
vote
0answers
136 views

Can't reliably create a directory on startup after ec2 instance mounts its ephemeral drives

This particular instance type mounts two ephemeral drives, in /dev/ and /mnt/. I have to create working directories for one of my services in these paths at startup or the services won't launch. ...
12
votes
5answers
3k views

How to cd automatically after git clone?

I want to automatically cd to the directory created by the clone command after I git cloned something. Important: I don't want to alter the syntax for the command (e.g. use an alias/function) because ...
7
votes
1answer
1k views

Stop browser window from switching workspace and getting focus when opening a link?

(I just switched from Gnome 2 to Xfce 4, so I have still to find my way around how Xfce works.) Iceweasel is opened on Workspace 1, Icedove is opened on Workspace 2. I click at a link in Icedove, ...
1
vote
0answers
418 views

destination IP mangle table

I have machine with 2 interfaces: eth1 connected to internet (ip xx.xx.xx.xx) eth0 connected to my laptop (ip yy.yy.yy.yy) I add those lines to the firewall file in order to manage the bandwidth ...
6
votes
1answer
2k views

What does the errors=continue mount option mean?

On the output of the mount command on my system there are some lines like the following: /dev/sda2 on /var/log type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered) And inside the ...
5
votes
5answers
9k views

Next day of the user entered date - date +1 day

I am new to scripting. I need a script in the AIX environment to get the next days date based on the date entered by the user. After hard time browsing for this, I got a piece of code which does the ...
0
votes
1answer
4k views

FTP error “553 Could not create file” in RHEL

We need to transfer a file from local machine to remote machine. Remote machines settings are as below: [540607@hsldevoradb ~]$ su - Saphr002 Password: [Saphr002@hsldevoradb ~]$ pwd /odi/CSV/in ...
0
votes
1answer
2k views

LFTP mirror upload only non existing files to remote directory

Every 5 minutes some new files are downloaded via lftp to a local directory. I need to upload to another ftp only the non existing files. My script so far is: #! /bin/bash today=$(date +%Y%m%d) ...
3
votes
0answers
549 views

Enabling GPIO in kernel not working [closed]

I have tried to enable the GPIO pins for my system through the Kernel but I am not able to get them to work. When I try this: echo 1 > /sys/class/gpio/export The terminal window just closes. ...
0
votes
1answer
270 views

sudo mount from webserver (Apache) by mod_php, result not visible by root

Intial question: http://stackoverflow.com/questions/19598201/umounting-through-exec-with-sudo-the-user-is-a-sudoer-with-nopasswd Basically, I have a PHP script, that: exec('sudo mount ...
3
votes
1answer
133 views

Grub rescue if Ubuntu USB not plugged in?

I have my Ubuntu installed on a USB drive, and to log into Windows I need to have it plugged while booting, or I get the Grub rescue prompt. When the USB drive is plugged in, I get the Grub menu from ...
-2
votes
0answers
57 views

How to find the full path of a file from my Desktop in Centos? [duplicate]

My folders in desktop: My folder name about which I'm interested is Ram: I tried the following command for installing yoono-desktop: [root@localhost mpatil]# tar jxf ...
4
votes
1answer
1k views

timidity: No instrument mapped to tone bank 0, no idea which one is missing

I am trying to play this midi file downloaded from here, but I get: $ timidity --verbose marivonnig1\ \(1\).mid Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size ...
26
votes
5answers
21k views

Why do we need the “at” command in Linux?

I was studying code in which the at command is used. I looked around and found that it is used to execute batch jobs. It is used to schedule jobs. It is given, as its input, a command, and a time, ...
1
vote
2answers
8k views

How to unpack a downloaded tar.bz2 archive?

I downloaded YOONO-Desktop from http://www.yoono.com/, and I try to install it with the following steps: [root@localhost mpatil]# tar xfv yoono-destop-1.8.43.tar tar: yoono-destop-1.8.43.tar: Cannot ...
1
vote
3answers
69 views

return the numeric value of a indexed variable rather than its name [duplicate]

The following piece of code illustrates my problem I'm afraid I oversimplified it way too much in the first round. #!/bin/bash dogLover=1 catLover=2 for ii in dog cat do ...
1
vote
0answers
153 views

Compiling Wine 1.7.1 from git in Gentoo

Trying to compile Wine 1.7.1 with the great new D3D and Opengl patches. I proceed like this : 1-Download the GIT source code from here : ...
3
votes
2answers
109 views

Identifying unused repositories in Yum

Is there a way to identify an unused repository in Centos/RHEL? I have quite a few repositories installed on a Centos machine and I'm not sure which ones are actually needed and which ones aren't. ...
2
votes
1answer
3k views

Open xfce “window manager” settings from command line

How do you open the window manager settings from the command line? I'm trying to modify my keyboard shortcuts, but when i click the applications menu -> settings -> window manager nothing happens. ...
1
vote
1answer
543 views

How can I move files from my host system to Whonix-Workstation?

I'm not sure if using the guest additions is safe, but it seems to be the only way to transfer files. I cannot even get copy/paste to work between host and workstation.
1
vote
0answers
281 views

USB Mouse and Keyboard not working in Linux 4 Tegra

I'm new to Tegra Linux development. I have a Tamontem NG Evaluation board with the Tegra 3 Chip. I installed L4T sample file system from NVIDIA Tegra resources ...
1
vote
1answer
346 views

Adding MySql Workbench to favorites in Fedora 19

I'm using Fedora 19 64 bit on my Samsung Series 9 Ultrabook and I have installed MySQL workbench 6 (mysql-workbench-community-6.0.7-1.fc18.x86_64) via the RPM downloaded from the MySQL website. I'm ...
2
votes
1answer
542 views

Samba 2.2.12 accepts my password, but is rejecting other user accounts?

I'm using a legacy system and I'm stuck with FreeBSD 5.4 and Samba 2.2.12, trying to access it from a Windows 7 system. I've created a unix account in FreeBSD using the adduser command and added ...
1
vote
1answer
352 views

Directing hostname to another computer within lan using hosts file

There seem to be more questions like this, excuse me if this is similar. I want to redirect to an IP address om my server computer. This is what I put in my hosts file on the client computer (IMac): ...
4
votes
2answers
808 views

fail2ban log parsing too slow on Raspberry Pi - options?

I'm running fail2ban on a Raspberry Pi at 950MHz which I cannot overclock further. The Pi is occasionally subject to SYN floods on particular ports. I've set up iptables to throttle the rate of SYNs ...
5
votes
1answer
119 views

Setting group permission on directory

I'm looking for the best way to give a group permission to view any files in /var/log, but only using cat or tail. My best guess right now is that I need to use ACL's: setfacl -mR default:g:group:4 ...
4
votes
1answer
3k views

Rsync --backup-dir seems to be ignored

I want to use rsync to backup a directory from a local location to a remote location, and store changed files in another remote location. I did use: rsync -rcvhL --progress --backup \ ...
12
votes
4answers
6k views

How can I search history with what is already entered at the prompt in zsh?

In zsh, I know that I can search history with Ctrl+r. However, oftentimes I start to type a command directly at the prompt, but then realize I should be searching history. When I hit Ctrl+r, it brings ...
3
votes
2answers
55 views

Overriding amended time stamps

I need to make it so the files in current directory get amended with a timestamp. It works fine for the first time, but once I run it again it adds another timestamp to the file. I need a way to ...
7
votes
2answers
1k views

Gnome-terminal and Zsh: keep current directory on new tab/window

I'm running gnome 3.10.1 on Arch with Zsh. I'm facing that problem that when I create a new tab or window from a terminal window, it resets the current dir to my home dir. I've already tried this: ...

15 30 50 per page