Fedora :: Shortcuts To Local Kernel Directories

Jun 7, 2009

When the kernel is updated, directories matching the new version name are created for documentation and source, for example /usr/share/doc/kernel-doc-2.6.27.24/Documentation and /usr/src/kernels/2.6.27.24-170.2.68.fc10.i686. Shortcuts to accessing these directories could be handy but the directory names keep changing. A simple way to capture the new names is to assign the most recent to environment variables. This can be done in /etc/bashrc to make them available to all users and subshells. Additionally, the shell option cdable_vars is set to make the kerneldoc and kernelsrc variables useful as arguments to cd. At the command line, cd kerneldoc or kernelsrc changes the directory to the proper directory for the current kernel version.

shopt -s cdable_vars # cd searches env, e.g. cd kerneldoc, kernelsrc
export kerneldoc=$(ls -dtp /usr/share/doc/kernel-doc* | grep -m1 ".*")Documentation
export kernelsrc=$(ls -dtp /usr/src/kernels/* | grep -m1 ".*")

ls is applied to the parent directory of the kernel version directories. -d tells ls to output directory names instead of their content. -t tells ls to sort by time, most recent first. -p tells ls to use a slash for directory delimiter (this is the default and rarely changed but the argument is included to be sure). The ls output is piped to grep. -m1 tells grep to stop after the first match to ".*", which is the first directory in the ls output.

Symbolic links can provide convenient GUI access to the directories but these need to be updated along with the kernel. I use a directory called /shared for my files that are accessible to all users. I have placed in it a bash script called kernelref, which takes advantage of the kerneldoc and kernelsrc variables to update the links. This script should be run whenever the kernel is updated.

/bin/rm /shared/kerneldoc
/bin/rm /shared/kernelsrc
ln -s $kerneldoc /shared/kerneldoc
ln -s $kernelsrc /shared/kernelsrc

View 2 Replies


ADVERTISEMENT

Ubuntu :: Mount FTP Directories To Local Fs - Curlftpfs?

Aug 28, 2010

I'm looking for a way to mount remote ftp directories to local filesystem in order to interact with them as if were local resources. I found several tutorials that recommend curlftpfs, but this project seems no longer maintained (last update on sourceforge goes back to Apr 2007).

So, is curlftpfs still the best choice or is there something newer which I could rely on?

View 5 Replies View Related

General :: Sync Local And Remote Directories Using Rsync?

Jul 14, 2010

I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed.

View 2 Replies View Related

General :: Need To Synchronize Local And Remote Directories In Real Time

May 18, 2010

I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?

View 2 Replies View Related

Red Hat / Fedora :: Restrict Users To Their Home Directories And Allow Admins To Have Different Home Directories?

Jan 20, 2010

Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.

So far I have created:
chroot_list
user_list

[code]....

View 1 Replies View Related

Fedora :: Add Shortcuts To KDE Menu?

Jul 13, 2010

I upgraded to F13 and I think its 13 for a reason - very unlucky for me. Screwed up my other Windows partition and I had to reinstall the entire machine (both OS's). Installing from scratch, didn't install everything, like I wanted. This changed in F13 install procedure. So now I'm trying to install Pidgin. Installed it with yum, but there's no shortcut in KDE menu. Why doesn't the install add this link? How do I add it?

View 1 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

Fedora :: Add Some Shortcuts In Kde As Minimize All Windows?

May 25, 2010

i want to add some shortcuts in kde as minimize all windows ... how i caan add this? for example in gnome i added ctrl+alt+home to be a shotrcut key for home folder how i can do this in kde?? when i go to standard shortcut keys it has only app such as juk , ... and in it windows shortcut also there is no such options ,what i must do?

View 14 Replies View Related

Fedora :: Keyboard Shortcuts Does Not Work - When 3d

Jun 9, 2010

After I enabled the 3d (using Nvidia driver), I noticed that the ALT_F2 does not display enymore the "RUN application" .. possible conflict with what?

View 1 Replies View Related

Fedora :: Keyboard Shortcuts Out Of <CNTL>?

Aug 31, 2010

1) Go to the above website using Firefox browser. Wait for "Done".2) Type the letters 'J', 'u', 's', 't', and ' ' in sequence.On my system (Fedora 13/32bit) the window scrolls several lines immediately after I key in the space character, just as if I had clicked on the gray area in the scroll bar.Why?I've had a similar thing happen several times (over the years) while writing replies in Yahoo mail but don't know what the key sequence was.he result, however, is that the Firefox browser window closes and I lose everything I've written.Shouldn't control keys HAVE to be pressed to initiate keyboard shortcuts?

View 5 Replies View Related

Fedora :: Keyboard Shortcuts Won't Save?

Mar 7, 2011

I have a problem with my keyboard shortcuts. I go to System/preferences/keyboard shortcuts and then enable my "Open Terminal" command for ctrl+alt+t . Then it works. But whenever I restart, it never saves, and I have to do the whole process over again.

View 6 Replies View Related

General :: Windows 7 Shortcuts In Fedora?

May 31, 2010

I recently installed Fedora, after trying Ubuntu and Opensuse. And it really works great! I'm still getting used to it, I had accidentally deleted my wireless network driver when I was deleting some packages. I'm only missing those Win 7 shortcuts, like 'windowskey + up' to maximize the window and 'windowskey + left' to resize the window to half of the screen and place it on the left. Is there any way I can get those in Fedora?

View 5 Replies View Related

Fedora :: Create Custom Keyboard Shortcuts?

Sep 13, 2009

Does anyone know how to make custom keyboard shortcuts? The commands don't seem to cross over to the system>preferences>keyboard shortcuts utility. For example, I added the file browser to my desktop. I right click, select properties, and the command is:

However, when I add a custom shortcut with that same command it doesn't work.

View 5 Replies View Related

Fedora :: Keyboard Shortcuts For Creating New Folder

Nov 12, 2009

I want to create a keyboared shortcut for creating new folder and so i use this command in gnome-kinbin : mkdir myfolder but it does not work but when i write:mkdir /home/user/myfolder it works correctly .

How i can say it to create the folder in the current directory of that is active in the current windows? and also what is the command for creating a file as .txt or .

View 2 Replies View Related

Fedora Hardware :: Can't Get Keyboard Shortcuts To Work

Mar 10, 2010

I have a Acer keyboard (manufacter Lite-On) and seems like I can't get the keyboard shortcuts to work. The shortcuts that DO work are search, CD play/pause/tracks, and Volume.but.. shortcuts for Web browser, email and mute vol don't work. Tried to unplug-plug the keyboard (usb) used System>Preferences>Keyboard Shortcuts disable then Enable still no-go This only happens in /home but when I login /root every shortcut works!Anybody know a posible solution/cause??I am using Fedora 11.

View 2 Replies View Related

Fedora :: Use Keyboard Shortcuts To Start Applications In KDE?

May 31, 2010

It is possible to set a keyboard shortcut to start an application in KDE? As example, win+f to start firefox. I know it is an option in menu editor, but it doesn't work. From the many distros I tried with KDE ( openSUSE, Arch, Gentoo, Mandriva ), only in Fedora 12 worked this option, and I hoped it will in F13 too, this is one of the reasons I installed Fedora. So it is a bug, regression, or I am doing things not the right way?

View 2 Replies View Related

Fedora :: Shortcuts Stopped Working In Kde Apps?

Nov 2, 2010

In firefox, all shortcuts work, for example ctrl+c, ctrl+v, etc. But in Kate for example they do not, in konquerror the same. What could:confused it be? I added russian locale in System Settings->Country/Region&Language and now it works. (I ve got russian language in keyboard layouts).

View 1 Replies View Related

Fedora :: Remove Program Shortcuts After Uninstalling?

Jul 26, 2011

the program short-cuts(application pane) appears even after un-installing the program, how to remove the icons?

View 2 Replies View Related

Fedora :: Volume Keyboard Shortcuts Not Working Properly

Aug 1, 2009

I just installed F11 on my new laptop (Acer Timeline 3810T) and I have the following issue when adjusting volume. The keyboard shortcuts work, but they don't raise/lower the volume smoothly, instead they do it in 4 or 5 increments total. What's weird is that the notification that appears in the screen when I adjust the volume (the whitish square with a picture of a speaker, I think it's part of Compiz) shows the the volume changing in small increments, but when I get to the 3rd or 4th little increment from the right the volume is already muted. If I look at the alsa volume controls at the same time, I see it changing by the 4 or 5 big increments.

View 2 Replies View Related

Fedora :: Access To Gnome-panel With Keyboard Shortcuts?

Apr 11, 2010

how i can access to gnome-panel with keyboard shortcuts?(for example trl+Alt+p or Alt+Ctrl+1 to open application launcher widget in panel?)

View 1 Replies View Related

General :: How To Store Files / Directories In Different Different Directories?

Mar 23, 2011

I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.

for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files

like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!

View 7 Replies View Related

Fedora Networking :: Mount Shortcut / Option To Add In The Fstab Line To Get The Shortcuts?

Sep 4, 2009

Our office just switched from CentOs to Fedora and I'm trying to get everything set up. Everything is working so farbut im having a problem with my mounted cifs drives. They mount ok, I made directories in /mnt where the drives are readable and accessible. I'm only missing the shortcuts to the mounted drives in nautilus and on the desktop. I've checked the gconf editor and the volumes should be visible.Is there an extra option i have to add in the fstab line to get the shortcuts or something like that?

View 2 Replies View Related

Fedora :: Change The Language Of The Action Labels Shown In The Keyboard Shortcuts Window?

Sep 6, 2010

how can I change the language of the action labels shown in the Keyboard Shortcuts window? System language is set to English (United States), but the mentioned descriptions are displayed in Italian language.

View 2 Replies View Related

Fedora Installation :: How To Install Kernel Source Tree Of Fedora 14's Current Kernel?

Feb 23, 2011

I have installed the fedora 14, but there is no kernel source tree.I read the doc "building a custom kernel".But I don't want to rebuild a new kernel.I just want to install the source tree of current kernel.Could someone tell me the way?

View 6 Replies View Related

Fedora :: Use Local Mirror For Yum - Set No Proxy For Local Mirror?

Jan 9, 2010

I'm using f12. My university has recently become a mirror for fedora packages. But i'm facing a trivial problem. I have set proxy for yum so that the packages that are not available on local mirror can be downloaded from other mirrors. But then i don't know how to set no proxy for my local server. Consequently it is not using my local mirror at all. Tell me how to set no proxy for the local mirror. I want my local mirror because it's damn fast. My proxy settings are like this (they go in /etc/yum.conf):

[code]....

View 2 Replies View Related

Fedora :: Edit The Permissions For Directories In 12?

Mar 22, 2010

I tried using Nautilus - nada (under root no less). Tried using file browser (nada again) Tried going to "places" and the directory I wanted - right click, permissions won't let me change squat. The folders I want to change are shared folders on my network at home and sometimes I transfer files between computers to different places. Can't do it tho, cuz of the permissions. Is CHMOD the answer? If so, how do I do it? For instance, In terminal, I issued the command (as root) chmod 777 movies I thought this would allow any device in the house to write to this directory, but the permissions didn't change at all. So what do I have to do?

On my Ubuntu machine I simply run Nautilus as root and it allows me to do this.
So what's different in Fedora?

View 3 Replies View Related

Fedora :: Where Deleted Files And Directories Kept?

May 1, 2010

Fedora 13

I recently deleted some files. I would like to know are the files kept in a directory? Like in windows recycle bin. I would like to know where these files are?

View 4 Replies View Related

Fedora :: $PATH Is Repeating Directories

May 13, 2010

I'm running Fedora Core 12 x86_64. I started out using the default bash shell (and customized the .bashrc, etc. as necessary) but had to switch to csh for this one scientific package that requires that shell.

The issue is that my $PATH has unwanted redundancy and I can't figure out how to fix it:

Code:

The csh shell was completely new to me so I'm sure I made a mistake somewhere.

Below are the files that might be relevant for diagnosing this problem. I don't think I touched /etc/csh.login or /etc/csh.cshrc but I might have accidentally done so.

Code:

Code:

View 8 Replies View Related

Fedora :: Add User For Ftp To Limited Directories?

Jul 22, 2010

How do I create a user with ftp access and/or Putty access that can only see and change certain directories. I want to create users to work on my website but I don't want them to have access to all of the folders.

View 2 Replies View Related







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