I am in the process of setting up an Asterisk server with Broadvoice services. I am having issues with making outbound calls and Broadvoice suggests I modify the /etc/hosts file in order to add their proxy server IP address and name. I login to my server as root and get the following command line header
[root@root tmp]#
I entered cd thinking this is what I need to change directory but fails. What is the command I need to enter in order to get to the /etc/host file so I can change it? How do I confirm an /etc/host file even exists?
I am trying to create an empty file based on the remaining hard disk space. The problem is that when I create a file that is 1 GB large, the df command shows the remaining space to be only 12 kb smaller than it was before the file was created.
someone@here:/tmp/delete# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 36827144 5031592 29924788 15% /
error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file
int main() { /*both named pipes are open*/ rfd=open(IFIO1,0); wfd=open(IFIO2,1);
Basically I download to main PC and rsync to my pi as the pi has a fraction of the speed for some reason when downloading form a source outside of my network.
The first few files will sync fine. Then I start getting errors like this
Code: Select allrsync: rename "/data/temp/.File.ext.y1716M" -> "File.ext": No such file or directory (2)
The directory on the host has user and group ownership as pi. Rsync has been setup to login without a password.
I have Debian / Ubuntu / Xubuntu. I'm trying to distribute and run a Python file with the least number of clicks for the end user. How do I create a PKG file for Mac OS X on Linux?
My daughter tried to create a bootable USB-stick version of ubuntu by following the steps on this site, which included using the "universal USB installer" utility from pendrivelinux.com. She was on a windows notebook (I don't know which version, probably XP), and had saved the .iso to the desktop.She's generally pretty good about following directions, but now, with no CD or USB stick in place, the windows machine HD boots directly into the installer "Try ubuntu or Install ubuntu" screen, with no trace of windows! Naturally, her SO (it's his work machine) is more than a little upset.
create a Cron file and script. I've tried reading through my Linux book but I am just lost here. I need to create a Cron file that will perform a Level 0 backup once per month, a Level 2 dump one day per week, and a Level 5 dump every day that neither a level 0 nor a level 2 dump is performed.
I am calling a service using http post through wget, the command is successfully executing but for each execution its creating a file and saving variable names n data n it. I want to execute this command without creation of a file. Would anyone suggest me what needs to be done in this regard.
My command: wget --post-data 'var1=99&var2=200' http://xyz.example.com:5555/invoke/Samples:httpInvoke For every execution, its creating the files with names: Samples:httpInvoke1 Samples:httpInvoke2 Samples:httpInvoke3
I am a bit of a n00b when it come to linux but I am setting up a test environment were I have a appliance monitoring network traffic. Part of my test requires me to copy a file via RCP from one host to another host. I have two ubuntu boxes. I have allowed the subnet in the etchost.allow for ALL. I have installed rsh-server
When I try to copy the file it looks like it tried to use SCP instad of RCP because it connects to 22 instead of 544. Also note that traffic must be unecrypted thus me trying to use Is there anyway to make ubuntu go old school to allow me to use rcp instead?
Code: testuser1@ubuntu:~$ rcp /home/testuser1/test.txt testuser1@10.46.41.38:/home/testuser1 ssh: connect to host 10.46.41.38 port 22: Connection refused lost connection testuser1@ubuntu:~$ rcp usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [Code]....
I want to create a compressed ISO image file and mount that file to one of the virtual drives and access the content (read-only) without worrying about manual decompression/extraction.For Windows and Linux (Ubuntu) OSes.
I saw an article use the following cat command to create a new text file:$ cat > first.sh << ENDAnd then after press the 'return' buttion, a '>' sign appeared expecting you to input the content. If I type 'END' then the 'return' button, then a new text file is created with what I just typed...I'd like to know what's the differnece in just type:$ cat > first.shwithout the '<<' sign?What '<<' really means? I cannot find it's meaning anywere... seems it's not in the redirection section.
I have a quad cpu with 8gb ram running SUSE 10 sp2 on a raid 5 XEN host server. I have created a 250 gb partition GWMAIL in the extended partition to be the disk space for the first virtual machine OES sp1 with groupwise 8.0. I have downloaded the OS .iso's to the desktop of the host server to use for installation. When I begin to install, it hangs for 5 to 10 minutes then gives me an out of space error.
I want to encrypt Full partition instead of creating a file and encrypting it, and also want to move this disk to another server. do i need some files also (that hold keys) with my self on new server. i am using FC11.
jump into a Linux class in college with only 3 weeks left in the course. I thought I would be able to catch on, and go figure, it didn't exactly happen that way. I was given an assignment to do, and I am so far lost it isn't even funny. I need to create a directory structure, set up file security, create a step by step instruction manual on how to copy/delete said files, and create a guide to common Linux commands. How would I create these files in root and share them with the other users? and where can I find a list of common commands and their functions?
I am trying to use ln to create a hard link to file a and whenever I do it, it creates a copy of the file instead. After having edited file a, when opening the link, it shows the old information and opening file a shows the new information. The command I am using is
Code:
ln /home/user/file
within the new directory i am trying to link from. I am using centos 5.4.
I want to put: xmodmap -e "pointer =3 2 1" somewhere in the startup. It seems creating an .xsession is the solution. But after I create a .xsession file in my home folder, the next time I run startx the screen just turns black. (And only for a short while can I switch to another virtual terminal, before that too becomes impossible). After deleting the file it runs OK again. I'm not using any login/desktop manager. I use IceWM on Debian Squeeze. Is there some script/import that has to be present in the .xsession file, or is something else going on? Also I'd like to know what I should do when I get a black screen. Turning off the PC is such a crude method
I just installed XMMS and I want to create a shortcut on the desktop to run it. I found a how-to video for creating shortcuts so I have the gist of it (I was able to create one for Firefox) but I don't know where to find the executable file for XMMS to do the same. I just don't know enough about Linux's file structure to know where to look.
I'm a Red Hat 6 newbie but have been around Unix.I looked at some threads here regarding this issue and haven't been able to find a solution.I'm executing;
When I look in /var/log/cups/error_log, here's what I get: E [18/Jul/2011:14:37:36 -0700] [cups-driverd] Bad PPD name "/etc/cups/ppd/BR5370_2_GPL.ppd"! E [18/Jul/2011:14:37:36 -0700] copy_model: empty PPD file!
I tried curlftpfs and can copy files etc., but opening media files in totem or vlc fails with read errors.I'd try to use gvfs-mount instead, but don't know how to pass an option similar to custom_list="LIST" which tells curlftpfs to use LIST instead of LIST -a.
Having a problem in my awstats, I'm a little lost to were to edit the config file to show all IP's and host so far its only showing up my IP and the PC's on my network and nothing else.
I can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt
If there is a general NFS share in the LAN and for example this share has three files - a, b, c is there any way to restrict file access to the root user of one particular host(falcon) in the same LAN environment while the normal users from the same host(falcon) should be able to access the NFS share & files a, b, c.