Tag Info

Hot answers tagged

46

The following is a list of the cloud services similar to Ubuntu One that work in Ubuntu (Can be installed with a .DEB file) and may provide support for the Unity Systray: Dropbox Website - https://www.dropbox.com/ Starting Free Space - 2 GB Bonus Space - 25 GB to 50 GB when used on an Smartphone Characteristics - Sync Files/Folders between devices. Unity ...


8

I suspect you just don't have access to them from the user that is running this script. Look at the file ownerships: $ ls -l /var/log/{dmesg,syslog,message} ls: cannot access /var/log/message: No such file or directory -rw-r----- 1 root adm 86384 Mar 9 11:12 /var/log/dmesg -rw-r----- 1 syslog adm 18553 Mar 25 13:25 /var/log/syslog You could read from ...


5

If you copy a partition with dd, the output file will be as big as the partition. dd does a physical copy of the disc, it has no knowledge of blank or used space. If you compress the result file you will save a lot of space, though, given that blank space will compress away very well (beware, this is going to be computationally very heavy). You can ...


4

You most probably don't have read permissions for /var/log/{dmesg,syslog,message}. So even though you have the files created on your destkop, they will be empty, since nothing was read but an attempt to write was made to a file(the one created on your desktop). So you have two options: Get read permissions for /var/log/{dmesg,syslog,message} as follows: ...


4

Your problem is the following lines of your script : echo ' ' > /var/log/dmesg echo ' ' > /var/log/syslog echo ' ' > /var/log/message Unsurprisingly, since those are precisely lines 7,8 and 9 which are the ones that bash is complaining about. These commands are attempting to delete the contents of those 3 log files in /var/log but since they are ...


4

Well, I just used usb stick + ubuntu live. I was transferring ubuntu 13.10 from larger hdd to a smaller ssd, and clonezilla "said" that it can't be done this way since target partition is smaller than the source partition. So I started ubuntu live, mounted both hdd's (new disk, was partitioned earlier of course, don't forget about swap ;) ), and just: cd ...


4

If you wanted a root gedit to not create backups then simply disable in root's gsettings (editing root's gsettings should be done with care & in only some limited places). sudo -i then gsettings set org.gnome.gedit.preferences.editor create-backup-copy false Note that starting in 13.10, I'd probably stick to gksudo gedit or just use a cli editor ...


4

Watch the ordering. The -f option represents the file, and it should be immediately followed by the file name. The proper command here is tar -xvzf files.tgz.


4

No, there is no single command to do what you are asking. Why? This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together.1 In this instance, the mkdir and rm commands do what you require, and work well together, since rm -r will delete the directory as well, so a subsequent mkdir will create ...


4

If your goal is to execute a one-line command that: Removes and recreates the directory ~/Desktop/foo if it already exists. Just creates the directory ~/Desktop/foo if it does not already exist. Then you can use: rm -r ~/Desktop/foo; mkdir ~/Desktop/foo ; is equivalent to a newline, but it lets you execute multiple commands on a single line (i.e., as ...


4

It does not matter. Because if you install and run the software after restoring back, the software will start using config files right away, because those files came from restore. but when you install software and then restore the config files will be overwritten. You will be back when you made the backup. if you do this way, make sure you have closed all ...


3

The script below is an opposite- variant of this script; while that one acts on specified drives, this scripts acts on all except specified (usb) drives. What it does Whenever an external usb storage device is being connected, the script copies its content into a directory, defined by you (in the head section of the script: target_folder =). A sub ...


3

Many many folders are affected when installing software. For a complete picture see How to understand the Ubuntu file system layout? Directories you will need are /bin/, /sbin/, /usr/, /etc/, /var/ , /lib/, /home/, /opt/ (3rd party software goes to /opt/; might be empty). /boot/ might be needed too depending on what you install. I would reconsider if I was ...


3

Since everything is working fine from the command line, the error Permission denied (publickey) means that the SSH part of rsync is using a different identity file than the specified username. From Jan's comment on the original question, we can specify the identity file in the rsync command using -e 'ssh -i /path/to/identity.file' .... Using the below ...


3

The line with DROPBOX="/root/Dropbox/Backups does not have a " at the end. The MYSQL, MYSQLDUMP and GZIP variables refer to the programs used to execute various commands. So they should contain the path of those programs: MYSQL="/usr/bin/mysql" MYSQLDUMP="/usr/bin/mysqldump" GZIP="/bin/gzip" You can use the output of which <program name> to see ...


3

You could simply use dd to dump your partition into a file, like so: sudo dd if=/dev/sda1 of=dump.img Then you can easily restore it by running the following command from a live DVD / USB stick: sudo dd if=dump.img of=/dev/sda1 Replace /dev/sda1 with your root partition. Obviously, you will need to place the dump file to another partition. Another ...


3

It's a bug in libpam-smbpass. You can get rid of it, the only thing it does is that it forces sync between the samba and unix password on login: sudo apt-get remove libpam-smbpass sudo service netatalk restart And you're golden again.


3

If you haven't made any significant modifications, copying the skeleton bashrc is enough. It doesn't affect the boot or GUI login process.


3

Download the ignorelist to /var/tmp/ignorelist wget https://gist.githubusercontent.com/rubo77/8ffaadbc58ab099d2bc3/raw/099c3e350a92e7dcb3ef406c10d4b2740151c22f/ignorelist -O /var/tmp/ignorelist Then start the rsync with rsync -aP --exclude-from=/var/tmp/ignorelist /home/$USER/ /media/$USER/linuxbackup/home/


3

Don't rely on the dependence system, because it may change in future updates. The correct procedure to follow is to change runlevel and go in Single User Mode with an init sequence (official MAN link). The system will terminate the services in the correct order for you. Open a virtual terminal (CTRL+ALT+Fn) and gain root privileges with su or sudo su (last ...


3

I suggest you following two ways. First. To modify /home/servershare/networkbackup folder's permission. $ sudo chown -R servershare:servershare /home/servershare/networkbackup $ ./prod1backup.sh Second. To use sudo command directly. $ sudo ./prod1backup.sh I think that "Permission denied" is shown, because it folder's owner is not current user.


3

Use duplicity to extract it: duplicity restore file:///path_to_folder_contains_backups/ path_where_to_extract_it/ Enter GnuPG passphrase, Press Enter By default, Duplicity restores last backup (comparing time) in the source folder even its not the backup for the same folder. If you have multiple backups for different folders or you want specific time of ...


3

First, copy the contents of C:\Users\USERNAME\AppData\Roaming\Thunderbird\Profiles on your Windows 7 machine to your Linux machine. Make sure you get atleast one folder with a name consisting of a random string of characters and then a name - e.g. x90j7qn5.Default User Then create a directory called ~/.thunderbird, and copy the files into it, and note down ...


3

Use: sudo dd if=/dev/sdX of=/dev/sdY to copy the contents of /dev/sdX to /dev/sdY.


3

What I want to know is can I view the Windows backed up files in Ubuntu and then select the ones I need to restore? No / doubt it. These backups tend to be created for that specific program in Windows and have some form of encryption or compression. You need to restore the files you want in Windows and then copy them over to Ubuntu. For example, I ...


3

Yes that’s correct when restoring backups you can chose where and which folder or files you will restore. You can restore backup as whole or part of it. When restoring you can restore to any place you point Déjà Dup. So, yes you would be able to bring your data up from the folder created by the backup


3

Your external drive is using either FAT32 or NTFS, which do not support permissions. You either need to switch to a unix compatible format on the external drive, or you can use tar ( or the gui archive utility ) to preserve the correct permissions in the archive while it is stored on such a disk.


3

No matter what, always backup your data. If you switch os and do not have a separate data partition, you will lose everything that is on your disk, you will have to copy it back after installation. Then the next thing is to decide how you would want your disk to be partitioned; as one big partition + a swap area, or a separate data partition to hold your ...


3

Set DEJA_DUP_DEBUG=1 like so on the command line: DEJA_DUP_DEBUG=1 deja-dup --backup


2

Finally, I got remastersys CLI working in 14.04 LTS, Actually I copied files of Remastersys 12.04 version which were in /etc/remastersys and /etc/remastersys.conf to same directory of 14.04 INstallation and /usr/bin/remastersys , /usr/bin/remastersys-skelcopy to respective directory. Installed dependcies, as suggested by FORK of remastersys, Black Lab ...



Only top voted, non community-wiki answers of a minimum length are eligible