Displaying 20 results from an estimated 3000 matches similar to: "Basic Bash Script Question"
2011 Feb 02
6
Lost root access
So on a virtual server the root password was no longer working (as in
I couldn't ssh in anymore). Only I and one other know it and neither
of us have changed it. No other account had the correct privileges to
correct this so I'm wondering, if I had mounted that vdi as a
secondary device on another VM, browsed the file system and delete
/etc/shadow would this have wiped all users passwords
2011 Feb 03
3
User Details
I have some questions on how I can perform the following actions from
the terminal in CentOS 5.5 final. My Google searches aren't helping
and I keep seeing references to the command 'useradd' but this isn't
present on my box;
-How to add a new user?
$ useradd
-bash: useradd: command not found
(This is the same for my normal user and when logged in as root)
-How to set/change an
2010 Aug 07
6
ext4?
Listee's...
I have a 5.5 box and I have formatted a partition as ext4 however I
can't mount it, the mount command is telling me its an unknown file
system type. fsck tells me the partition is a clean ext4 partition but
I can't mount it.
Some reasearch has lead me to believe the problem is that ext4 isn't
enabled in the kernel by default in 5.5 (this was originally a 5.2 box
that
2011 Apr 06
2
File-system Corruption
Hi List,
I suppose this isn't strictly CentOS but I'm talking about some 5.5
servers so I thought someone else here may have had the same issues;
We power on servers at night via IPMI and shut them down the same way
for automation. The problem I'm facing is that the servers are
shutdown in about 2 seconds. IPMI provides remote access to the power
features as we know so I don't
2011 Feb 16
6
Authentication Problems
Hi List,
We have a CentOS VPS running a web site in a DC far away. The chap that
dev's this site told me he couldn't SFTP in yesterday, his password was
being rejected (I went to his desk to confirm and saw it was telling him the
password was incorrect but neither him nor me had changed it and we are the
only two with access to this VPS). So I logged in as root and reset his
password, be
2011 Jan 26
2
Basic Permissions Questions
Hi List :)
So, I have a folder1, its owner is user1 who has r+w on the folder.
User2 is the group owner who only has read access (when I say user2, I
mean the group called user2, because when you make a new user the OS
can make them their own group). You can see these permissions below:
[user2 at host test]$ ls -l
drw-r----- 3 user1 user2 28 Nov 2 16:17 folder1
How ever user2 can not
2010 Jul 12
4
occasional glitching when playing
Hello list
I'm running Icecast 2.3.2. Every few seconds, streams are interrupted by a
noticeable glitching or popping sound.
It sounds like it's being caused by a buffering or latency problem but I'm
not sure how to fix it.
If the listener re-connects to the stream it stops the glitching for a few
minutes, but eventually it returns.
Glitching is also appearing in the dumpfiles
2009 Dec 01
6
Unable to share directory via Samba?
So I went to System > Administration > Server Settings > Samba and
added a folder to share and initially set it to guest access to get
things going.
I couldn't access this one and only share on this server with guest
access from either my Windows laptop (XP Pro SP3) or a Leopard server
(10.5.8) so I changed the settings to use user authentication and
added my local user details
2015 Oct 05
2
Re: [PATCH 3/6] v2v:test:win: actually check the eventual layout
On Monday 05 October 2015 15:40:03 Roman Kagan wrote:
> v2v/test-v2v-windows-conversion.sh used to query if the expected
> directories and filed were present in the VM upon conversion; however it
> would ignore the results of that query.
>
> That lead to the test passing even though the checks failed.
>
> To fix it, parse the output of guestfish and verify that all is-file
2013 Jun 13
3
Troubleshooting TDMs (Packet capture like debugging)
Hi All,
I am looking for a way to troubleshoot issues with TDM (E1) trunks
with a provider.
Currently with SIP trunks I am using tcpdump to perform packet
captures between our gateways and the SIP providers IPs, capturing
traffic on all ports, to include both the SIP messages and the RTP
stream.
How can I achieve a similar result on TDM links connected to TDM cards
in Asterisk servers, where by
2008 Dec 23
2
Bash Script for Beginners! oh dear :'(
Hey guys,
I'm a bit of a beginner (understatement!) with shell scripting and
seek help! I am setting up our new squid proxy. Its working a treat
and squidGuard is the icing on the cake. But, I am trying to write a
shell script to search through our black list category's for
squidGuard and remove the parsed value;
Scenario:
/some/directory/where/blacklist/is/stored contains about 40-50
2009 Mar 19
4
Being Green, Time to make the servers sleep!
Shadies and Mentlemen;
I am trying to be green and put our backup servers to sleep during the
day and have them wake on LAN and fire back up at night for our
nightly backups as "sleep" is a sort of low power usage mode.
(At this point I would be curious to know the different levels of
sleep, what can I achieve? Does my server just drop into a low power
state, or can I stop the hard
2013 Jul 26
2
RTP from pcap file
Howdy all,
Does anyone know of a niffty CLI tool for Linux that can take a PCAP
file that was created on a SIP PBX for example, and then dump the
payload of the various RTP streams in there into seperate files so I
can listen to them?
I can go this graphically with Wireshark, but I'd like to script it
for automation.
Cheers,
James.
2015 Jul 07
5
[LLVMdev] [cfe-dev] 3.6.2-rc1 has been tagged. Testers needed.
Hi,
@CC'ing Hans because this will likely be of interest to you.
Right I've started trying to build LLVM inside an Ubuntu chroot
(Ubuntu 14.04LTS Docker image) and I've already come across a pretty
bad bug in the ``test-release.sh`` script which potentially means that
builds and/or tests could potentially fail without anyone noticing
(unless someone carefully looks through the logs)
2010 Apr 14
1
General Server Hardware Question
Hey List,
How do people measure how many listeners they can have on a single NIC
card? A 1Gig Ethernet NIC card maybe able in terms of bandwidth to
serve 31,250 listeners at 32Kbps (not including overheads etc, just a
flat calculation) but there is no way the NIC card its self could
handle 31k concurrent connections to 31k different IPs on 31K ports?
(Obviously the OS comes into play here a bit
2010 Oct 26
0
VNC Question
Hi Everybody :)
I'm sorry if this is unwanted noise but I'm struggling to find the
answer to what is probably a ridiculously simply problem. Setup
vncserver but it likes to run as a user (reading parameters from
~/.vnc/xstartup of the user the process runs as).
When I start vncserver and connect in I am dropped into a running copy
of X of that users desktop, how can I instead have it
2009 Jun 03
3
System V Init Script
Hey Listees,
I have a question (hopefully quite simple) about the system V init scripts
in /etc/init.d. I have an app installed and for some reason it had no system
V init script. It has been installed a long while now so I can't quite
remember whats going on but basically I remember I wrote the init script my
self and the app is enabled as a service which chkconfig to run at system
levels 3,
2010 May 19
2
Generic RAID question
Does anyone know if using unequal drives in a RAID 0 is possible?
I was looking to set up a software stripe but if I have two volumes of
unequal size I wish to stripe over, will the OS try and work around
this by say only using as much space as is available on the smallest
drive or is there anyway it will use all of both drives?
Does it have to be a perfect block/byte balance across drives?
2010 Jul 13
3
occasional glitching when playing
Hi Geoff,
> some questions:
>
> 1. What is the bitrate of your stream?
>
128kbps
>
> 2. How much bandwidth do you have between your source and your streaming
> server?
>
Fast connection, ~500kbps achievable upload.
>
> 3. How many listeners do you have?
>
< 10. The glitching occurs even with only 1 listener. It seems to repair
itself for a while if
2009 Jun 19
1
Shell Script: Simple array usage = bad substitution?
Hey Guys n Gals;
I have some arrays that I can't seem to expand correctly (if that's
the correct word?), imagine the following example:
#!/bin/bash
myArray=("First" "Second" "Third")
First=("Monday" "Tuesdays" "Wednesday")
Second=("One" "Two" "Three")
Third=("A" "B"