I am working on creating an image to be deployed on multiple systems [URL]. While everything works great I have one very small issue relating to the shortcuts. The "master" system has been set up to use Cairo dock with a custom launcher to display the user home directory contents. So this is essentially referring to /home/user1 on the master system. While installing on a new system, this shortcut of course refers to /home/user1 while it should be /home/user2. While it is easy to correct, ideally I would like not to have to edit the shortcut as we will be deploying on about 40 systems. I tried to use the $HOME variable in the shortcut but that did not work. How to use a variable for the $HOME shortcut so it will work on all systems?
I'm using Zorin OS 4 Lite, which is a variant of Lubuntu 10.10. For some unknown reason, the desktop shortcut on PCManFM is pointing to my home folder, so I have all my personal files covering my Desktop (kind of annoying to be honest ). And when I try to add a shortcut to the Desktop it adds it to my home folder instead. Seems like there's some kind of hard link between the Desktop shortcut in PCManFM menu and my home folder. However, I can't find where it is or how to fix this. Has anyone else had this problem? How do I fix this?
I currently have an ASUS eebox which is running XBMC Live which includes a stripped down version of Ubuntu. The computer will be used by various people within a teaching environment and I have successfully installed launchers for Openoffice which can be opened within XBMC.
I am trying to the make the experience for the end user as simple as possible as the vast majority will have never used Linux before. I want to get to a point where they can open Openoffice, plug in their USB stick and navigate quickly to their files. At the moment when the program is launched and I try and navigate for a file it automatically starts in the Home Folder of xbmc. So I have navigate up a couple of times, then find the /media directory where the USB stick has been mounted and so on. What I was hoping to do is create a shortcut within the Home Directory which takes you straight to the Media folder where usb is mounted.
I have already attempted and created a folder within the Home directory and called it usbpen.
I have then added the following line into fstab /media /home/xbmc/usbpen none bind 0 0
Now when I reboot the machine and navigate to the home/xbmc/usbpen folder I can see the Drive name of the USB device mounted in /media but I cannot navigate through any of the files, I am greeted with a read error message. So the shortcut is only allowing me to see the device name only.
be aware that due to running XBMC Live I do not have a Windows manager installed and therefore everything must be done through the terminal.
I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.
For example:
Code:
Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).
my script has a variable which comes in the form +00.00 +0.00 -00.00 or -0.00 (the numbers can be any in that form) for any that have a + symbol I need to remove the +, but if it has a - symbol it needs to stay.
i need to make a new variable with the string from the old variable btut without any plus sign. I have tried a lot of different ways with no success, each thing I tried either left the + or removed the entire string. I think this should work but doesn't
I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)
can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example
objectnames1=`ls -a` objectnames2=`ls -a` etc.
i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think of a good way to accomplish this.
if using a value from one variable to name another isn't possible, can anyone think of a more elegant solution? i know limited syntax but i'm willing to read up...
I am trying to alter the character position of residue numbers above 999 in a pdb file.The following script is an attempt to:1) Get all unique pdb residue numbers (in column 5) using awk and assign it to a variable i.2) Loop through all the values in $i and if it is greater than 999, shift that number one character to the right using sed.However, the script only manages to alter the final residue numberCould anyone please advise how I can loop through all values in $i and shift it one character to the right?
#!/bin/bash # Script to alter position of residue number in pdb file for resid above 999 i=$(awk '{print $5}' wt-test.pdb | uniq)
I have a dual-boot macbook with an OS X partition and an ubuntu partition. When I first installed ubuntu, I changed my home folder to my OS X home directory to synchronize all my files from both. My home directory is now /media/sda2/Users/username/. In a regular home folder, the icons for Documents, Music, Pictures, Movies, etc. are different (not just with emblems, but actually different icons). But when I changed my home folder, these subfolders' icons stayed the same as regular folder icons and I can't figure out a way to change that default setting. I know how to change the icons for each folder manually, but these changes don't appear everywhere (i.e. nautilus, places, etc). Furthermore, every time I change my icon theme, I would have to manually reassign icons for these folders. Is there a way to globally change the folder icons for these folders?
On one of my servers I see this when I log in. What does this mean and how can I get it to go away? Everything seems to work fine, but none of my other machines give this error.
I was previously running 10.04 32bit. Recently upgraded my cpu/ram, so figured I'd try 64 bit. On my previous setup, I had / in one partition, /home in another, plus a few other partitions (/backup, etc).
I did the install of 64 bit, but was too scared to point /home in 64bit to the previous /home. After the install, now all those previous partitions/mounts are on /media. I'd like to just point /home at the previous partition. Should I mess with /etc/fstab to do this or will it cause problems? Is the easiest thing to do reinstall, then point the new install to use the pre-existing /home? Wasn't sure if that would cause problems or not. I've backed up most of the previous /home area, so worst case, if it gets blown away, I should be alright.
I need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).
I'm assuming it's something I could probably set in pam configurations?
recently i made a backup of my home directory in 10.10 before reinstalling 10.10. again.This time I chose to manually define the partitions (50GB Root, 25GB Swap, 325GB Home)Now i wish to migrate the old home into the newly installed home, which is on a separate partition.I have found the following documentation URL...Still, as a beginner I am not quite sure about the necessary steps to perform.As the new home is located on a separate partition is it possible to simple delete all directories there and copy all directories from old home to new home with rsync?
Do I have to install all the software that corresponds to the old home first followed by migrating home or first migrating home followed by installing the software such as thunderbird, Texlive2010 etc.Guess that migration should take place at a later stage. Otherwise my old profile files from firefox and thunderbird will be overwriten by new ones?
Been digging around and not finding anything that quite works.
Background: I had an existing 10.10 install and 10.04 on another partition. When I installed the 10.04 I told it to use the existing /home partition which is also being used by the 10.10 install. All good, both users have directories with all their data in the same /home partition.
Issue: So, as the 10.04 was 32bit (experimenting but another story) I decided I would replace with 10.04 64bit. All went well except when I did the manual partitioning I screwed up and instead of setting the existing /home partition to 'use but don't format' - which I think is what I must have done last time - I left it as 'don't use and don't format'. So, obviously, now the new 10.04 install has its /home inside /, which I don't want. I want it on the existing /home partition as it was with the previous 10.04 install.
Question(s): Is there any simple(ish) way of doing this without a reinstall? Not a major problem as I have only just installed and can do it again without losing anything but time, but I would like to figure out a way to do it without if possible.I want to essentially move the /home/user directory (rather than the /home) and make it /media/home/user inside the existing partition. Seems easy enough on the surface but becomes involved as I investigate.Ubuntu 10.04 minimal install with Xfce DE.
I have installed Ubuntu Lucid Lynx to dual boot with Vista Business on a Toshiba Port�g� R500. Everything seems to be working great out of the box, but I have a problem with available space on the rather modest (but spectacular performance) 64GB SSD.
1) Current Partitions:
Toshiba includes three partitions on the new 64GB system, to which I have added one primary Linux container partition, enclosing two logical partitions.
- /dev/sda1 TOSHIBA SYSTEM VOLUME: 1.6GB, Partition type "Unknown (0x27) - /dev/sda2 Windows Vista Business: 49GB, NTFS - /dev/sda3 HDDRECOVERY: 6.5GB, Hidden HPFS/NTFS (0x17) - /dev/sda4 Linux Container for sda5 & sda6: 7.6GB, Extended - /dev/sda5 Ubuntu Filesystem: 6.6GB, ext4 - /dev/sda6 Swap Space: 1.0GB, Linux swap
I'm sure I'll remove Vista eventually, but in the meantime, (along with MS Office) it requires a whopping 32GB just to admire itself, after all the updates and security upgrades have been applied. I shrunk the partition to 49GB to leave space for future updates and upgrades.
Right now, Ubuntu only occupies 2.4GB of it's allocated partition, leaving 3.6GB free (I know, that doesn't add up to 6.6GB, but that must be something to do with GiB vs. GB, ... or magic, maybe). Swap is only 1.0GB, with 2.0GB of RAM, but I don't use Hibernate.
2) Installing /Home on SD Card
Well, I tried this first, since I have a nice 8GB, Class 10 SD Card, and a built in SD Card reader. With the SD Card inserted during installation, I was able to select it and designate it as /Home, but when I tried to restart after insallation was complete, I got an error message before the Ubuntu login screen could appear.
I think what is happening is that it doesn't mount normally when booting. It's not listed as a bootable device in BIOS, but there is a Toshiba Bootable SD Card utility included with Windows, which needs a bootable floppy or something to work. There must be something that allows the BIOS to recognize it as a floppy during boot, or whatever, but any Toshiba Utility isn't going to work with a Linux file system. Puppy doesn't like it either for the Puppy sfs saved user file (although it will usually work if I copy them there manually, rather than allow them to save automatically).
3) Extending /Home to the SD Card
I thought I'd just have to copy stuff to the SD Card manually, as extra storage, when /Home got too crowded and cosy. Then I noticed that as soon as I inserted the SD Card it immediately got added to the total space avaialable shown by the Disk Usage Analyser accessory (which just happened to be open at the time). So now I see 10.8GB total, which is plenty to start out with for me. I assume this is because the SD Card had been formatted to mount as /Home when I first tried that solution, and got recognized as soon as it was inserted in the slot.
Questions:
a) Will this work? Will /Home really use the extra space, or is it just "pretending"? b) Is there anything special I might need to do? c) What do I do with the three folders already on the SD Card, obviously put there during the failed attempt to install /Home on the card? (The third folder is hidden: ".ecryptfs".)? d) Is it acceptable to leave swap with just 1.0GB, since I don't need to hibernate? e) Anything else I need to consider?
I have a strange problem when I do SSH to a FEDORA9 based Linux Server.
[Code]....
When I login using "adah" username in TELNET I am automatically directed to my home directory at location "/media/disk-1/home/adah". But when I use SSH to login using the same username I get the following message Code: Could not chdir to home directory /home/adahaj: Permission denied
I have a secondary disk which holds a /home directory structure from a previous install of Linux. I installed a new version on a new primary drive and mounted this secondary drive as the new /home. Problem is, even though the users are the same names and I can access the home directories for the users, I cannot login directly to their home directories, as I get the following error: -
Code:
login as: [me] [me]@[machine]'s password: Last login: Wed Jan 6 18:34:33 2010 from [machine] Could not chdir to home directory /home/[me]: Permission denied [[me]@[machine] /]$
Now, since the usernames are correct and the users are in the passwd file with the correct home directory paths, could it be user ID's that are different or something else? It's not as though I cannot access the home directories for the users, simply that I cannot log directly into them from a login prompt.
Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.
Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?
I am running Folding with the multi-core High performance client and would like to set this to be a service rather than have to run it by hand, so to speak, when the machine is booted.
Wondering if its possible to have a User's home folder that resides in a different partition (could be ntfs or ext). I don't mean mounting /home on a different partition. The home directory will still be available for adding more users but I'd like to have a specific User's folder away from /home
Installed Ubuntu along with Debian on my Notebook and use Grub Manager to choose between them on startup. Since i like Debian now a lot (in past days it was a very hard system to handle, but there has been some progress i noticed), i have to change some things (want Debian as main system now) For Ubuntu i have: (was meant to be main system on Notebook) "/", "/home" and a "swap" partition, but since i am now going to use mainly Debian, i wanted to store my files all in the "/home"-folder of my extended Ubuntu partition (has much more space available) not in the "/home" folder of the Debian system. So i want both (Debian and Ubuntu) to use the same extended partition ("/home") which i created for Ubuntu to save their files like downloads, videos, and so on.
Having been converted to using "Linux" about 8 months ago, and gaining confidence to try different distros, and figuring out how to 'keep' my Home folder, I've had great fun trying them out and learning as I go. The latest distro I'm trying is Kubuntu, which I really like and will keep for a while. However, when I was partitioning in the set-up, I omitted to create my home folder. Instead I now have is a partition the size of my "old" home folder, and to which I have to sign into to gain access. The files are all there so that is no problem.
1. What i would like to know is if this set-up is OK, or should I change it so that it is actually in the home folder (if so how?( a re-install?))
2. If I should decide to try out another distro in the future will this be safe to change to "home"?.
I recently switched from GNOME to xfce, and I can't get working a simple keyboard shortcut to ssh to another machine.
In GNOME, I made a launcher (which gnome-do found); the first time I ran the launcher I'd get an X11 popup asking for by ssh passphrase, and then it would be saved for the rest of the GNOME session, making logins nice and fast.
In xfce, a similar launcher opens a new xfce4-terminal, which asks for the passphrase every time. I made a keyboard shortcut to "ssh -X me@server" -- this open an X11 popup for the passphrase, but no terminal, because there is no "run in terminal" option for keyboard shortcuts.
I'd be okay with running "ssh-add" at every login, but it has to be system-wide, rather than attached to one terminal instance. Passphraseless ssh is an options but a creepy one.