Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session.
Is there a tool like it for Windows? Specifically, without having to install something like cygwin?
Hi everyone,
I just downloaded the Fedora 14 Live-Desktop ISO and used CDBurnerXP to burn the image to a DVD. For some reason the first time I burned the image nothing showed up on the DVD when I accessed it even though CDBurnerXP said it had successfully burned to the disk. I did it again and the ISO shows up on the disk (I don't think this is right, should it be the files inside the image that show up on disk or the image file??). The problem now is my dell PC can't find the ISO when I try to boot from it. I get an error saying it can't boot from the CD.
I have verified the ISO image as directed from the Fedora website. My question is how do I make a bootable CD from a Fedora Live-Desktop ISO? How can I verify that the ISO was written to the CD correctly and has anyone had any issues booting from a CD using a Dell desktop (I'm not at home at the moment so I can't check what model it is but its old enough, I've had it for about 5 years).
EDIT: All that needed to be done was to burn the image to CD as an image and not a data file. The first three times failed, I'm not sure if this was because of faulty DVD's or if the write speed was too high (16x). I put in a new DVD and changed the write speed to 8x, the image was then properly burned to the disk without any errors.
Thanks.
There's tload that plots load average.
There's iftop that network usage as bars.
How to do something like this:
# tcpdump -i eth0 --plot 'host 1.2.3.4'
13:45:03 | | 0 in 0 out
13:45:04 |O | 0 in 1MB out
13:45:05 |OOOI | 500 KB in 4MB out
13:45:06 |OIIII | 6MB in 1MB out
13:45:07 | | 0 in 0 out
13:45:08 |IIIIIIIIIIII | 53M in 0 out
Hello,
I'm dual booting XP and Kubuntu. I wanted to boot to my existing raw scsi XP partition inside Kubuntu, not a virtual XP instance. I accidentally booted Kubuntu inside itself. I know this is a big mistake, so I interrupted the VM, which saved the state and closed. I rebooted the host and now I can't load the Kubuntu partition at boot time. I get a maintenance shell and the Kubuntu partition is read-only. I am able to boot XP as usual. I removed the HDD and tried to mount it on another computer as an external drive and neither partition (XP or Kubuntu) will be recognized, it just appears to be one device that still mounts and appears empty. From the maintenance shell I can see all the files are still on the Kubuntu partition.
How can I undo what I did when I accidentally booted Kubuntu inside itself? Is it a matter of unlocking some files somewhere? how can I do that on a RO filesystem?
Thanks!
I am in the process of building a solution to handle many developers (possibly hundreds) to work on their files via sftp, each one Jailed in their home directory. For our particular needs, we have a samba mount point that contains all of the users home directories.
I have started developing the following solution and hit some walls:
- I have configured a Ubuntu Lucid Server as sftp server.
- In order to jail the user in their home directory (without allowing them the browse a directory up and seeing all the other users folders) I am using mount --bind and not a symbolic link (also some ftp clients don't really work with sym links).
- The user accounts are local unix user accounts on the sftp server (not using a directory service or anything) that have an empty home folder created on the local machine, then I use mount --bind to bind the empty folder to the actual users home directory on the samba share.
With this solution I am hitting a couple of problems, in the case of a server reboot, all the mount --binds are lost because they are not written in fstab. Then I have read somewhere that the maximum amount of entries in fstab are 400 (which does not really help us).
I have thought of a solution of writing something that stores the mounts in a text file as a backup and on server reboot, run the script that re mounts.
I am just really unsure about this whole process and was wondering if anyone has any insight on possibly a better solution for SFTP? (not FTP)
Hello everybody,
is there any utility to limit the network throughput of a process after it has been launched ? Simple example: you note that a user takes all your upload bandwidth using scp and you'd like to limit the rate or decrease the priority of the transfer.
I guess i could use a combination of iptables/tc or pf to achieve that, but i was wondering if there is a "one-shot" tool available (like tickle with a --pid option ^^) ?
Regards,
Jean-Baptiste
I'm going on a long flight tomorrow, and would like to be able to use my laptop during the journey.
Wireless devices like WiFi and bluetooth interfere with airplanes instruments, and shouldn't be used on flights.
If my laptop does not have a physical rf-kill switch, is it sufficient to just ensure that the relevant modules do not get loaded?
If so, is that always safe, or does it vary between different hardware?
My particular situation, is a Samsung NC10 netbook. Atheros 5k wireless hardware. Debian sid with kernel 2.6.30-1-686. However, I think it'd be interesting to know the answer to this question for the general case; not just my specific case.
(Sorry for the title. Any suggestions?)
I've set my commandline PS1 to cover 3 lines:
white space
user, server and pwd
$ or # to input
I think less (or more?) is configured to break after window's height - 1, because when I do a $ git log, the first two lines are invisible at the top of the window and the rest is scrollable.
I'm not sure who handles this scrolling and its configuration, but I assume GIT uses less/more.
Where can I configure that my scrollable window is window height - 3 lines and not window height - 1?
More info:
If I cat lines.txt | less with a 23 line file, it shows the entire file and no scrolling.
If I do the same with a 24 line file, it doesn't show line 1 (and no scrolling).
With 25 lines: doesn't show lines 1 and 2 (and no scrolling).
With 26 lines: shows line 1 and scrolling!
The less breakpoint is at the wrong height...
I'm currently using sftp to download nightly backups (.tar.gz) from my web host to my desktop computer. I think I'd like to switch to rsync to minimize the bandwidth (and time). I have cygwin installed on my PC, but don't use it for much. I have shell access to my web host via ssh (PuTTY).
Let's say my source directory is myserver.com:/home/username/backups/, I want to grab all of the .tar.gz files from there, and I want to save them to C:\Backups\ locally.
I recently ran into an issue with a VPS where the SSH service crashed, leaving me unable to connect to the machine. The other services were up and running; only the SSH service died.
I managed to resolve the situation with a reboot from the VPS control panel, but the incident got me thinking:
Assuming:
I don't have physical access to the machine
I have no server control panel access or means of rebooting the server
All other system services are still functioning
Then how could I recover from the SSH service dying?
I want to create a directory, for example:
/public/all
But I want it so that if you create a file in all, the owner is root, but anyone with access to the /public/all folder can delete/edit/etc the file, just not change the permissions. (I will use a self-created "setx" application to change the execute value if needed.)
Reason for this, I don't want you to be able to deny other users write/read access to files in /public/all. I heard setuid on directories doesn't work for that.
This freezing issue has been reported by others over the past few months but no clear answer has been provided. Some have attributed it to Banshee or other music players but this is incorrect since I have this problem and never while using anything other than perhaps Firefox. (I am not sure if it is necessarily due to firefox). Logging out and logging back in seems to remedy the problem. However, it would be nice to fix things once and for all. This problem began in the past 3 weeks. I alway have all Mint updates implemented.
I am looking for the right answer to the above question.
It has been asked by jmillikin at ubuntu forums as follows:
Is it possible to create a hostname alias? Sort of like /etc/hosts,
but with other hostnames rather than IP addresses. So that with some
file like this, you could ping "fakehost1", and it would be re-mapped
to "realhost", and then "realhost" would be resolved to an IP address.
# Real host # Aliases
realhost fakehost1 fakehost2 fakehost3
Somebody has answered about ssh. But not about ping, etc. My main
purpose is to use it as an alias for svn server. In my case, realhost
is under dynamic ip. So, "/etc/hosts" alias doesn't work. I want to
access my svn server as svn://my_svnserver/my_repos instead of
svn://realhost/my_repos.
Thanks in advance for any advice.
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
Thanks in advance
-- Deb
Supposing I have a program that prints lines with data periodically, how can I turn then info them into graphical plot that updates itself each time new line available?
$ ./prog
10 44
20 66
30 55
40 58
50 59
55 58
60 77
^C
$ ./prog | scrollingplot
Window appears and updates on each line printed:
80|
| ----
| ---- ______...__/
| / -----
| -
40|
-------------------------------
10 20 30 40 50 60
# Note that ASCII art-style plot is just for example,
# I want simple X window like in mplayer.
There are enough tools for static data, but I haven't seen ones for updating data (except of ksysguard).
I have the following structure:
/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc
I want to delete all the .svn folders. How do I do it?
It's NOT:
rm -rf .svn
In windows you use the /s trigger. How do you do it linix?
I'm a sysadmin for a multi-user server, where students in our department have shell accounts. One of our users has requested that we install sshfs on it. I'm debating whether it would be wise to install sshfs as suggested.
My main concern is whether a FUSE mount could make our server less reliable. In my experience, bad things can happen to servers when an NFS server suddenly becomes unavailable — the load average shoots up, and you might not be able to unmount it cleanly, to the point where a hard reboot might be necessary. If a FUSE-mounted server suddenly disappears, how hard might it be to clean up the mess? Are there any other likely catastrophes or gotchas I should consider?
At least with NFS, only root can mount, and we can choose to mount NFS servers that we consider to be reasonably reliable.
Let's assume that our users have no hostile intentions, but might do stupid things accidentally. Also, I'm not really worried about the contents of the filesystems they might mount, since our users already have shell access and can copy anything they want to their home directory.
I've noticed in git and various scripts, there is a default user email address. This seems to default to user [email protected]. Is there a way for me to set this to my ral email address?
I've just run the following in bash:
uniq .bash_history > .bash_history
and my history file ended up completely empty.
I guess I need a way to read the whole file before writing to it.
How is that done?
PS: I obviously thought of using a temporary file, but I'm looking for a more elegant solution.
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Recently
for a customer demonstration there was a requirement to build a virtual box
image with Oracle Enterprise Manager Cloud Control 12c. This meant installing OEL Linux 6 as well as creating an 11gr2 database and Oracle Enterprise Manager Cloud Control 12c on a single
virtual box. Storage was sized at 300Gb using dynamically allocated storage for the virtual box and about 10Gb was used for
Linux and the initial build.
After
copying over all the binaries and performing all the installations the virtual
box became in the region of 80Gb used size on the host operating system, however
internally it only really needed around 20Gb. This meant 60Gb had been used when copying over all the binaries and although now free was not returned to the host operating system due to the growth of the virtual box storage '.vdi' file. Once the ‘vdi’ storage had grown it is not
shrunk automatically afterwards.
Space is
always tight on the laptop so it was desirable to shrink the virtual box back
to a minimal size and here is the process that was followed.
Install 'zerofree' Linux
package into the OEL6 virtual box
The RPM was
downloaded and installed from a site similar to below;
http://rpm.pbone.net/index.php3/stat/4/idpl/12548724/com/zerofree-1.0.1-5.el5.i386.rpm.html
A simple
internet search for ’zerofree Linux rpm’ was easy to perform and find the
required rpm.
Execute 'zerofree' package on
the desired Linux file system
To execute this package the desired file system needs to be mounted read
only. The following steps outline this
process.
As root: # umount /u01
As root:# mount –o ro –t ext4 /u01
NOTE: The –o is options and the –t is the file
system type found in the /etc/fstab.
Next run zerofree against the required storage, this is located by a
simple ‘df –h’ command to see the device associated with the mount.
As root:# zerofree –v /dev/sda11
NOTE: This
takes a while to run but the ‘-v’ option gives feedback on the process.
What does Zerofree do?
Zerofree’s
purpose is to go through the file system and zero out any unused sectors on the
volume so that the later stages can shrink the virtual box storage obtaining
the free space back.
When zerofree
has completed the virtual box can be shutdown as the last stage is performed on
the physical host where the virtual box vdi files are located.
Compact the virtual box ‘.vdi’
files
The final
stage is to get virtual box to shrink back the storage that has been correctly
flagged as free space after executing zerofree.
On the
physical host in this case a windows 7 laptop a DOS window was opened.
At the prompt the first step is to put the virtual box binaries onto the
PATH.
C:\ >echo %PATH%
The above shows the current value of the PATH environment variable.
C:\ >set PATH=%PATH%;c:\program
files\Oracle\Virtual Box;
The above adds onto the existing path the virtual box binary location.
C:\>cd c:\Users\xxxx\OEL6.1
The above changes directory to where the VDI files are located for the
required virtual box machine.
C:\Users\xxxxx\OEL6.1>VBoxManage.exe
modifyhd zzzzzz.vdi compact
NOTE: The
zzzzzz.vdi is the name of the required vdi file to shrink.
Finally the
above command is executed to perform the compact operation on the ‘.vdi’
file(s). This also takes a long time to
complete but shrinks the VDI file back to a minimum size. In the case of the demonstration virtual box
OEM12c this reduced the virtual box to 20Gb from 80Gb which was a great outcome
to achieve.