General :: Generating SSH Key At The Console - What File Needs To Be Copied To Usb Drive

Feb 17, 2011

I've been giving the task to go to a Linux console as root. and generate a ssh rsa 4096bit key, and copy the private key to a USB drive.

1) What command should I use here? ssh-keygen -t rsa -b 4096 ?

2) Do I need to append the new private key to the authorized_users file? Which file exactly must be appended there? Would this be sufficient?

mkdir -p /home/myuser/.ssh
cat id_rsa_LOCAL.pub >> /home/myuser/.ssh/authorized_keys

Should any special permissions be applied to this file?

3) Which file must be sent to my usb drive so that I can take it home to connect with?

View 5 Replies


ADVERTISEMENT

General :: Files Not Getting Copied Fully To Usb Drive?

May 10, 2011

I tried copying files from my ubuntu computer to a usb drive. But the file transfer doesn't complete and gets stuck at some point.

Ex: If I try to copy a file having a size of 622MB, the files transfer runs smoothly till maybe 617MB and then doesn't proceed at all.

View 1 Replies View Related

General :: When Copy File And Then Power Off / On Copied File Is Gone

Nov 16, 2010

I have an embedded linux system (Debian 'Lenny') which booting from a microSD flash. If I make a copy of a file on the flash file system (cp test test1) and then power off (disconnect power spontanious). Connects power again and the system come up, but the file test1 is gone. How can I secure that test1 is NOT disappear if the power get lost?If I copy file and then restart system with reboot command, the file test1 does not disappear.

View 7 Replies View Related

General :: Generating A White Noise Audio File?

Jan 3, 2011

My apt gets noise from outside. I would like to generate a white noise audio file and play it to block outside noise. I would prefer something like the low frequency hum of a big fan. How can I generate this file in using linux tools?

View 14 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

Ubuntu :: Copied Backup Disk (3.2 GB) Onto Hard Drive Using 10.4 In Order To Reorganize Storage, But Then Could Not Trash It?

Jun 30, 2010

I copied my backup disk (3.2 GB) onto my hard drive using 10.4 in order to reorganize my storage, but then I could not trash it.In "file browser" a lock icon appears next to the folder name, and I always get the error message that it can not be put into trash in one step, would I like to delete it? I click on "delete" and no help.Further trial led to an error message that I don't have "permission." I'm the only user.I don't know anything about terminal and not one command, and usually when I ask for help, people provide "code" but no instructions on how to enter it or where.I'm the rawest beginner at terminal,

View 9 Replies View Related

Software :: Generating Video Of Waves From Audio File?

Oct 23, 2010

Is there an application available to generate videos of waves of an audio file? I've seen this kind of things in player's plugins but they are normally just viewers and won't generate a video from it.

View 2 Replies View Related

Fedora Security :: Having A Script That Will Report Whenever A File Is Copied?

May 12, 2009

have a script that will report whenever a file is copied? Some useful information would be the time/date, user, and destination whenever a file is copied. I've looked into the stat command, but it does not distinguish between copy and access.

View 4 Replies View Related

Ubuntu :: The Script To Trigger Whenever A New File Gets Copied Or Placed On The Desktop?

Feb 15, 2010

I wanted to make a simple script that would trigger on certain environment events. For instance, I want the script to trigger whenever a new file gets copied or placed on the Desktop, and cut that file and place it somewhere else. Sort of cleaning the Desktop process. Here's the thing: I want to trigger on it's own, not requiring me to open shell and invoke it from there

View 7 Replies View Related

Ubuntu :: File Permissions For Copied Files On External HDD?

Mar 24, 2010

I'm sure that the issue I'm having is easily solvable once I gain some understanding about copying files - and file permissions in Ubuntu. Here's my situation:

I have an external HDD where I like to back up some files (I mess around with distros on my main machine and feel less stressed knowing the important stuff is backed up). I have an ext4 partition on the external drive where I have copied files, both through the terminal (cp 'filename' /dev/sdc3) and by drag and drop (gnome-terminal).

The problem is, once the files are copied, most are inaccessible. I can view them, but some directories and individual files say I do not have permission to open them. Others are accessible. This is from the same user profile that copied them.

How do I see what's going on? More importantly, how do I make files on external drives available to any user or OS (that can handle ext4)? I want to make sure that if my whole system gets effed that I could still do a reinstall of my OS and then access those backup files.

View 5 Replies View Related

Programming :: Create Awk Sript For Generating Two Files From A File Checking A Condition ?

Mar 3, 2010

I have a csv file like, having HDR segment and multiple LIN01 segment in each line:like

Here i want to split file in two, one having LIN01 segment which have LR at end, and one which have LF at end in LIN01 segment.

Is it possible to created awk or shell script for this?

View 3 Replies View Related

Ubuntu :: File Names With Spanish Accents / Copied From Windows And Don't Work

May 18, 2010

we have two work computers, one with windows and one with Ubuntu. We are going to change the windows computer to Ubuntu, and put them on a network. So we copied all of the documents on the windows computer to the Ubuntu computer as a first step. The problem is, with the documents and folders that we copied, if they have spanish accents we can't open them.I tried looking on the forum but I didn't find anything about exactly that problem. One post suggested that the "locale" might be the problem, but our locale seems to be the correct one for our country and language.

The accents show up as white question marks inside a black diamond. If I open a file inside a folder with an accent, or a file with an accent, it tells me that the file doesn't exist.But when I change the name of the containing folder or the file, and replace the question marks with accents, I can open the folders and files.But we have lots and lots of documents, and it would take a really long time to change the name of all of the folders and files. How can I fix all of them at the same time?

View 9 Replies View Related

Fedora Security :: Generating Password Hashes Compatible With FC11/sha-512 Shadow File?

Jul 3, 2009

I've been trying to write php or perl code to generate the sha-512 password hashes in fedora. I've been unable to do the hashing which is encoded in the shadow file on fedora core 11. Does anyone have php or perl code which provides the hashing algorithm. (All of my attempts result in the encrypted hashing being longer than 86 character -- the length that crypt says the sha-512 should be)

View 3 Replies View Related

Security :: Debian Shows File Permissions Change When Copied To A Windows Partition?

Dec 10, 2010

Some time back using this computer a SucKit rootkit was found. Having dd urandomed the drive, flattened CMOS battery, flashed BIOS, run Knoppix live CD 6.1,using no flat pack battery (laptop), and memtested the RAM, I am still having problems with what I suspect is a javascript file that tries to reload the rootkit from? firmware. I suspect the firmware as everything else should have eradicated it??

Also it or a hacker via a backdoor then corrupts the drivers so devices malfunction. Windows security programs and rootkit detectors don't seem to pick it up. Fresh install of Windows or linux after the above still show this problem, though internet not used. The person who admitted rootkitting this machine is capable of writing java programs or using javascripts to do all this.

When viewed using Ubuntu 8.4 files and dates on a Windows partition appear normal both in file manager and terminal. However booting using Knoppix CD these files are all green, and I cannot change their permissions, even as root. ie: everything is green including text files etc. If I copy them to a linux partition, I can change their permissions and make them nonexecutable and nonwritable. Also on the Windows FAT32 partition the . directory has the date 1 Jan 1970.

If I disable any green files, I can shutdown and reboot cleanly. If I don't I start having problems shutting down [/usr/sbin/init ?] And always these follow a pattern:

Can't remember details as I have now corralled the beast but error messages relating to:

nfs-server
inet.d/statd

are the start of these.

View 3 Replies View Related

General :: Best Console Tool To Explore Sound File Information?

Jul 12, 2010

Im looking for console tool that will output most detailed information about sound file (particularly mp3). Tried to use different tools (id3, lame, ffmpeg)

View 4 Replies View Related

General :: Generating Two Bash Arguments From 'ls'?

Jul 3, 2011

I have a directory containing the following files.

Code:

1-res-opt-I189N-0001.pdb
1-res-opt-I189N-0002.pdb
1-res-opt-I189N-0003.pdb
1-res-opt-I189N-0004.pdb

[code].....

What I want is something like:

Code:

for i in *.pdb
do
python my_script.py 1-res-opt-I189N-00{1..10}.pdb 3-res-opt-I189N-00{1..10}.pdb
done

such that always the two files with corresponding index are submitted together to the Python script. How do I do that?

View 4 Replies View Related

General :: In What Order Are Files And Directories Copied When Using Cp -R?

Jun 26, 2011

If I execute the following command:
cp -R /myfiles /mydestination


If myfiles contains several sub-directories and files, in what order will they be copied? For example, directories might be named 0123a, 9993c, myfolder, xfolder.

They are not copied in alphabetical order OR in date order OR in the order they appear when using a standard ls command as far as I can tell, so what actually does determine the order?

Edit:
I am trying to determine the order that the cp command uses in order to determine how far along my copy command made it before it stopped. For example, I was hoping to be able to determine it copied 3 of the 4 directories successfully.

View 1 Replies View Related

General :: Generating Logical Memory Addresses Of An Application?

Mar 15, 2010

Is there any tool for generating logical memory addresses accessed by any application in linux ?

View 2 Replies View Related

General :: Generating Public And Private Keys Using Putty Key Gen?

Jul 19, 2010

Another question though...i have a fedora 12 server set up and i have created 3 sudo users. I have created 3 putty keys (public and private) using putty key gen and basedn my research i was told to put the public keys in /home/"user"/.ssh/authorized_keys .I did that but when i tried to log on using the key...the server is saying "server refused key" could anyone assist in this issue

View 4 Replies View Related

General :: Can't Rename/move Files From OSX That Were Copied From NTFS

Jun 29, 2010

I recently had data recovered and it was sent back to me on what I think is an NTFS drive. I copied all the files over to a file share I have on a Linux box, that's ext4. Now I have that share mounted on my OSX machine, and I can't move or rename most of the files. However, in a couple cases I was able to rename a folder after the third try. Another time I was able to rename a folder once, but not again. All the permissions are showing up the same on the command-line -- I can't see any differences between the permissions on any of the files/folders. Note that I can create new folders and add files no problem, and then rename and move those all I want.

View 5 Replies View Related

General :: Cannot Browse Files Downloaded Or Copied Across Network

Jan 9, 2010

I have ran into a permissions problem. It seems that any file I have created with Fedora I can browse to in Firefox. I cannot browse to files that I have downloaded from the internet or copied locally across our network. I changed file permissions to 755 and 777 for these files. I even thought that maybe it was the php file content that was causing the issue. So, I copied the file content from file 2 into file 1. File 1 was the file I could always browse to since I created it in Fedora. I could still browse to file 1 after it had file 2's content.

I look at the permissions and they appear the same for both files. I am not sure why I cannot open the other files. I downloaded phpMyAdmin. I cannot hit any of these files in a browser. I also copied some files from a a backup location we have internally. I cannot browse to any of these files either. I used chmod 777 filename. Even after doing that I could not hit any of the files. I moved the files into my document root directory ( /var/www/html ) and I still cannot browse to these files.

View 3 Replies View Related

General :: Comparing Directories To Check All Stuff Copied?

Jul 4, 2010

I have recently backed up all my documents photos etc to an external hard drive. What is the best way to check that everything has copied? I have tried diff but it was not very clear.

View 7 Replies View Related

General :: Copied Files In Nfs Does Not Show The Right Time-stamp?

Mar 3, 2011

I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows

Quote:

-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king

But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.

View 3 Replies View Related

General :: Detect Which PC (IP Address) Copied Files In A NFS Folder?

May 17, 2011

I have iomega appliance, which is based on Debian distribution. There is an NFS share that I have created which is without password. Since it is without password, there are some viruses copied. I want to find out which IP address is the source of these files. In other words, I want to know which PC is copying these infected files on the NFS share

View 2 Replies View Related

General :: Set Default Permissions For Files Moved Or Copied To A Directory?

Jan 25, 2011

How to set the default file permissions on ALL newly created files in linux - but differs in important ways:

I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.

Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)

umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.

View 3 Replies View Related

General :: Cloning With The Dd Command - Source Being Copied Onto Bad Sectors On The Destination Disk?

Apr 17, 2011

To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?

View 1 Replies View Related

Fedora :: LVM On External USB Drive - Recovery Console?

Jan 17, 2010

I'm having an issue with LVM on an external USB drive. When booting, the system drops into a recovery console if the external drive is not powered on because it cannot find the volume group and members. The setup is one system drive with fedora 12 installed, one internal data drive; LVM volume group vg1 with 5 partitions and one external backup drive LVM volume group vg2 with 5 partitions. Both the data drive and external backup are the same size and identical layout.

I use an rsync script that I wrote to execute backups (mirroring actually).
fstab is set 'noauto' on the external partitions.
I am new to LVM and I'm stumped as how to make the system 'ignore' the external drive at boot, if not powered on.

View 1 Replies View Related

Ubuntu :: Use External Had Drive From Text Console?

Feb 2, 2010

I'm not able to login to my GUI. So I have to use text console only. But the hard drive is not getting detected from text console. What should I do ?

View 1 Replies View Related

Hardware :: Shutdown A USB Device (pen Drive) From A Console?

Sep 26, 2010

The umount command sync and release the USB device (pen drive or external HD) from the filesystem, but does not shutdown it, like Nautilus does with the safe remove. How can i properly shutdown it from the command line?

View 7 Replies View Related

Debian :: Console Only Session - Hard Drive Malfunction

Jun 16, 2009

My hard drive's file system has become totally mucked up. I had a few partitions on it, 0 is XP, 1 is vista, 2 is Debian, and 3 is the data. I know that it's this hard drive because when I disconnect it, any liveCD runs ok. After failing to boot puppy linux (liveCD), xp (bootmgr not found), debian (ended in kernal panic), I tried GPARTED. The xp and vista partitions are listed as existing, but they show a problem flag, gparted says they are corrupt, and they are not listed as having a start, end, or any data. However, the main data partition does list a start, end, size, and data space used.

I need to either format those or get into something that will let me access the data partition. Gparted either hangs on boot or doesn't recognise the mouse so I can't reformat the bad partitions. Are there any programs that will ignore the bad partitions and let me access the good ones? Any time I go into a linux distro it either ends up in kernel panic or the mouse doesn't respond. It's hard to explain. With GPARTED, sometimes it hangs at the third line, sometimes it fails at "mounting hard drives", and sometimes it makes it to the GUI but I can't use the mouse. Debian alternates between these as well.

If I keep trying it looks like I can boot, and it will recognise the partitions, but I can't use the mouse. I'm kind of familar with bash, is there a way to start up the terminal with no gui? If I could get a terminal up with a hotkey in the GUI or just start up from a terminal (no gui), I could type mv dev/sda3/ or whatnot. If I could get into a terminal of gparted I could format the bad parts of the drive to see if that would work. Otherwise it looks like I'm going to have to zero out the drive with the WD diag tool. The data isn't life or death, but it would save me some time.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved