mardi 30 décembre 2014

What is the /boot partition really for?


I'm reading a relatively old text on Linux partitions and file systems (the LPIC 1 Certification Bible). It says:



Some versions of the Linux boot loaders cannot access a kernel that is outside the first 1024 cylinders on a disk. By putting the /boot partition at the beginning of the drive you can be assured of not having a problem when accessing the kernel at boot. This problem shows itself most often in cases of dual booting Linux along with another operating system that is on the first partition.



Why would a Linux distribution have "no access to the kernel outside the first 1024 cylinders on a disk"?


Also, what does "putting the /boot partition at the beginning of the drive" mean?



What are the implications of using an inode_ratio of 16384 in terms of storage use on ext4?


I'm assuming that this means that if the average file stored (including directories etc) is less than 16384 bytes, it may be possible to run out of inodes before using the full storage capacity of the filesystem. However, should the files being stored consume over 16384 bytes, on average, a physical space storage limit should be reached before one would run out of inodes.



npm style OS package manager. Packages local to a directory


Is there any distro or package manager with the following npm-like characteristics?:




  • Packages are installed to their own directory, chosen by the user at install time. As opposed to packages spilling their stuff all over different directories (/bin /usr/bin /etc/ ...)




  • Dependencies are contained in the local environment of a package. Clearly this is strongly coupled with the resolution of resources at runtime, which in unix is given by $PATH and conventions. In node dependencies are contained in nested subdirectories under $PKGDIR/node_module/$DEPPKG. This is only sustainable because the packages are very small, but there is a feature to link packages to other places in the filesystem. This could be the default.




What attracts me most about npm's system is that everything is local, so it is easy to reason about in isolation. There is no implicit global environment to worry about. You get user level installations and multiple versions of the same package for free. It is interesting (and in my opinion a pitty) how the idea of encapsulation has clearly impacted programming practices, but not the environments in which applications will ultimately be run.


I realize this goes against half of what unix is currently: The FSH, $PATH and other enviroment variables as a way of setting the environment, etc. However, I would argue that it is closest to the Unix filosophy, in the sense that (in my opinion) it is simpler.


Note: I'm closer to the noob side in the noob->beard spectrum. This is based more on more speculation than experience. If you think the whole idea is stupid, or you see some fundamental problem with it, please tell me why. Thanks.


Edit: Sorry to broaden an already broad question, ignore this if you like: I know little about compilation, shared libraries, etc. Is this only possible for npm because javascript is interpreted? Are there any issues with compiled languages (C, most importantly) that would make this impossible or very hard?



How to install ALX drivers for an AR8171 network adaptor in OMV


I bought a shiny new ASRock FM2A88X Extreme4+ motherboard (which I chose specifically for the plentiful expansion slots) to run my shiny new file server. During the installation of Open Media Vault, the installer failed to identify the network adaptor (according to the ASRock website, a Qualcomm Atheros AR8171 ). Googling lead me to believe it uses the ALX driver. I selected the entry in the installer, however it failed to initialise. I decided to try a manual install of an updated driver, so downloaded the latest Backports Driver Pack for the ALX driver (via my desktop mackine onto a USB stick). However when I went to compile it on the OMV server, it complained saying MAKE isn't installed. To add salt to injury, when I tried to download MAKE, the installation instructions give direction to make MAKE (which I cannot do without MAKE installed).


For the life of me I cannot find a stand-alone installer (such as a .deb file) for the ALX driver. All other instructions I've found online need an internet connection to do (adding sources etc) which I cannot do without a working network adaptor!


Does anyone out there know how to fix this??



tails live usb, problem with french locale


This is my first linux distribution, I like this one because I can use it on any computer with live usb.


Problem is I cant make those characters ?./§%µ¨£1234567890°+, on a french keybord you use majLock or shift and the press a key in order to make those. However shift+key will only print the regular character.


shift is working since I can make < and > (> is done with shift+<).


I have no idea what to do. could you help me out?



Email using shell script using email address from external flat file


I'm using alexkowalski script from Email using shell script



MAILADDR=(mail1@example.com, mail2@example.com, mail3@example.com)
for i in "${MAILADDR[@]}"
do
echo "Mail test..." | mail -s "Mail test subject..." $i
done


My question is how to read MAILADDR array from an external flat file?


And how to insert an external flat file replacing the body of the email as in



echo"/home/user/information-for-any-user.txt" | mail -s "Mail test subject..." $i ??


Get password login for opensuse 13.2?


Hello I am using OpenSuse 13.2 KDE How to get login protected ie. Password when i switch on my system i go directly on on (without password vitrifaction )