2
votes
1answer
540 views

Restrictions of /etc/profile in Gnome

I have an issue which bugs me for a long time. I'm using the Intel C++ compiler which includes shell scripts to set up environment variables for library paths, include paths and more. Sourcing these ...
0
votes
1answer
95 views

Shell script to send a mail once every 20 days [duplicate]

Need a shell script to be called via cron job every day and see if it's 20th day,it should send a mail
0
votes
1answer
73 views

Service not starting at boot

Im on Ubuntu 12.10. I have a service that runs well when I do sudo service myservice start/stop at installation, I did sudo update-rc.d myservice defaults and I see that there are in rc*.d some ...
-4
votes
2answers
7k views

Need a shell script which should send a mail to me once every 20 days

Can some one tell me the logic or the entire script to create a shell script to send a mail to me once every 20 days
0
votes
2answers
1k views

Cannot apt-get - Package install issue

I was halfway through updating my machine when it crashed and I had to reboot. It was updating new packages while it crashed. When I try to use apt-get it always fails because of a mysql package. ...
1
vote
1answer
1k views

Yum update shows “Killed”

When I update my RHEL with yum update commend, it list all update packages, and after I hit Y for yes, got following response. Running rpm_check_debug Running Transaction Test Transaction ...
0
votes
1answer
673 views

Launch application as root user in GNOME

I've got CentOS 6 installed on my server. A few users want to have access to it via VNC, so I installed GNOME separately. Everything works okay, but I want to have possibility to run applications as ...
1
vote
1answer
184 views

KDE apps look ugly over ssh

I am on a Kubuntu machine and sometimes reach another Xubuntu machine over ssh, and launch some KDE apps from there, these apps look really weird while the GTK apps look normal. Here are some ...
1
vote
1answer
386 views

comm not working to find unique words to file1 from two files

I have two text files in which I have to use the comm command to extract all unique words from file 1. So just those that are not in file 2. I was asked to use the comm command (not diff nor join). I ...
0
votes
1answer
388 views

make google talk use the correct alsa sound device for input

I'm trying to make the Google Talk plugin accept sound. In other programs (e.g. Skype, Audacity) I did this by selecting the device for my sound input, hw:0.2 (see screenshots). Google Talk does not ...
2
votes
2answers
101 views

Is there a distribution-independent tool to autocompile+install dependencies?

I like the way e.g. ArchLinux' yaourt (or if you're not that lazy, abs+makepkg; and from what I read so far, Gentoo's ebuild as well) automatically take care of obtaining, compiling and installing ...
7
votes
2answers
19k views

How do I set permissions recursively on a dir (with ACL enabled)?

For example, I want to give my colleagues write access to certain directory. Let's assume that subdirectories in it had access rights 775, files 664, and also there were some executable files in the ...
0
votes
0answers
330 views

What is causing my UMTS modem to hang up?

I am trying to established PPP communication to my mobile ISP with wvdial, but I always get modem hang up message. In my syslog I can see some activity: Oct 29 07:48:47 linuxbox kernel: ...
0
votes
1answer
678 views

Can I safely delete the Ubuntu 12.04 partition and use the unallocated space for my Elementary OS?

I have this setup: I've decided to switch to Elementary OS Luna (fork of Ubuntu 12.04) as my main Linux distro. Now I need to delete my Ubuntu partition so I could add capacity to my eOS which only ...
1
vote
4answers
4k views

How do you create and execute a bash script which calls an executable from higher folder?

I'm attempting to write a very simple script which calls an executable from a higher level folder. If I were just typing the command into the console, I would type ../filenamehere {options} ...
1
vote
1answer
1k views

What makes a good network planner software on Linux?

I need to design a VoIP network topology for a customer and I need a software that can do as that famous Windows one, don't remember the name.
0
votes
1answer
708 views

econf fails when installing pth

I'm just starting out with Gentoo and I'm getting a bit stuck installing programs with Portage. It's wonderful and automatic except when it isn't. Many of the programs I try to install (git, gedit, ...
6
votes
2answers
417 views

Why wouldn't a symlink to a symlink work?

I've run into a weird issue when installing SWI-Prolog using homebrew on my OSX 10.9 box. I'm trying to debug it to figure out whose bug it is (SWI-Prolog's, homebrew's, or OSX's), so I can report it ...
2
votes
1answer
3k views

How do I send all information in /var/adm/message file to a remote system?

I'm trying to figure out how to send all information that is normally identified in the /var/adm/message file on a Solaris system to a remote system.
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
57 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
904 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
957 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
152 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
363 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
851 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
576 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
419 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
271 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
134 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 ...

15 30 50 per page