cgdisk
8200 linux swap 10gb
8300 linux filesystem
ef00 efi system 10gb
elilo
fsck.vfat /dev/sdc (efi system)
cgdisk
8200 linux swap 10gb
8300 linux filesystem
ef00 efi system 10gb
elilo
fsck.vfat /dev/sdc (efi system)
– download driver from samsung site , unified linux driver
– ./install.sh
– cd /usr/lib64/cups/filter/
– ln -s rastertospl rastertosplc
– add printer from cups
thanks http://askubuntu.com/questions/390803/samsung-printer-ml-2545 and also http://www.linuxquestions.org
also check usblp module,
uncomment /lib/modprobe.d/cups-blacklist-usblp.conf
gist.github.com/2267094
———-
mkdir -p mp3s
SAVEIFS=$IFS
IFS=$(echo -en “\n\b”)
for i in `find . -type f -iname “*.m4[ab]” -print`; do
echo $i
NAME=`echo $i | sed -e ‘s/\.\///’ -e ‘s/\.m4b//g’ `
echo “doing ‘$NAME'”
faad –stdio $i | lame –preset standard – “mp3s/${NAME}.mp3”
done
IFS=$SAVEIFS
I know two ways to do this (probably there are more):
Method 1:
– start the process from the konsole
– put it the background with Ctrl-Z and ‘bg 1’.
– tell the shell to detach the process with the command ‘disown -a’
Method 2:
– start the process with nohup (ie. write the command ‘nohup processname’ instead of ‘processname’. See ‘man nohup’ for an explanation.
lvscan
#load device module
modprobe dm-mod
#change the volumes that exist to active
vgchange -ay
#mount the logical partition
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
http://www.fedoraforum.org/forum/archive/index.php/t-64964.html
I have an EMAX ES08A servo motor which I could not make it work under Arduino Uno.
( I will test it again with external power).
I tried it with Raspberry Pi using Dr.Monks code and it worked.
http://www.doctormonk.com/2012/07/raspberry-pi-gpio-driving-servo.html
I have edited the code to test the motor.
Here is the code:
Motors specs are here
EMAX ES08A 4.8 - 6.0V 1.5 / 1.8 kg.cm 20.8 / 24.9 oz.in 0.12 / 0.10s / 60 degrees I would be very happy if some could clarify what those terms mean.
My findings are :
Motor goes to 120 degrees clockwise when time.sleep is 0,0003.
Motor goes to 0 degrees when time.sleep is 0,0012.
Motor goes to 120 degrees counter clockwise when time.sleep equals 0,0021 .
These are not exact results.
Be careful with those values. I am not responsible for any harm happening to your gadgets.
On Linux servers (especially web servers) it is recommended to create /tmp as separate partition and mount it with ‘noexec’ and ‘nosuid’ options. ‘noexec’ disables the executable file attribute within an entire filesystem, effectively preventing any files within that filesystem from being executed. ‘nosuid’ disables the SUID file-attribute within an entire filesystem. This prevents SUID attacks on the /tmp filesystem.
WARNING: Various services such as MySQL, Postgres, Plesk and Zend use /tmp as temporary storage. You must STOP these services before carrying out the procedure below. Failing to disable these services may cause major InnoDB database corruption.
1. Stop all services including Plesk, MySQL, Apache, Postgres, SpamAssassin and any other service utilizing the /tmp file system.
2. Copy all of the files in /tmp to a holding directory:
# cp -Rp /tmp /tmp-backup
3. If /tmp is a separate partition on the server, you only need to edit /etc/fstab and add ‘noexec’ and ‘nosuid’ options for /tmp (see step 5). Then remount the partition:
# mount -o remount /tmp
If the tmp file is not a separate partition (check using ‘# df -h’) then you will need to follow steps 4 – 10 below. Else, skip to step 11.
4. If /tmp directory resides on / partition, it is better to create new partition for /tmp, for example with size 1 GB:
# cd /var
# dd if=/dev/zero of=tmpMnt bs=1024 count=1048576
# mkfs.ext3 -j /var/tmpMnt
5. Add the string into /etc/fstab:
# cp /etc/fstab /etc/fstab~
# echo “/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0″ >> /etc/fstab
6. Mount new /tmp partition:
# mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp
7. /tmp should be chmod 0777:
# chmod 0777 /tmp
8. /tmp ownership should be root:root :
# chown root:root /tmp
9. Copy the old tmp files to the new tmp directory:
# cp -Rp /tmp-backup/* /tmp/
# rm -rf /tmp-backup
10. Remove and re-link old /var/tmp file:
# rm -rf /var/tmp/
# ln -s /tmp/ /var/tmp
11. Confirm that /tmp is mounted with noexec and nosuid:
# mount
Look for: “/dev/sdaX on /tmp type ext3 (rw,noexec,nosuid)”
12. Restart the services you previously shut down.
NOTE: This article was updated on April 5th 2011 to include a more optimized process.
elham dürüsüylen
kızlar sürüsüylen
hergün birisiylen
nasip eyle yarabbi
bu yazıyı 10 kişiye gönderirsen duan kabul olacak… herkes 1 kere paylaşırsa samanlık seyran olur.
Make sure you have these in your httpd.conf file:
Code:
# This to look for filename to access control information
AccessFileName .htaccess
# This to prevent the .htpassword and .htaccess files from being able to be viewed.
Order allow,deny
Deny from all
Satisfy All
# And also something like this placed in your directive tags, etc:
AllowOverride AuthConfig Limit
Howto: Linux Add User To Group
by Vivek Gite on March 14, 2006 · 90 comments· last updated at June 10, 2010
How can I add a user to a group under Linux operating system?
You can use the useradd or usermod commands to add a user to a group. The useradd command creates a new user or update default new user information. The usermod command modifies a user account i.e. it is useful to add user to existing group. There are two types of group. First is primary user group and other is secondary group. All user account related information is stored in /etc/passwd, /etc/shadow and /etc/group files to store user information.
useradd Example – Add A New User To Secondary Group
You need to the useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. The syntax is as follows:
useradd -G {group-name} username
In this example, create a new user called vivek and add it to group called developers. First login as a root user (make sure group developers exists), enter:
# grep developers /etc/group
Output:
developers:x:1124:
If you do not see any output then you need to add group developers using groupadd command:
# groupadd developers
Next, add a user called vivek to group developers:
# useradd -G developers vivek
Setup password for user vivek:
# passwd vivek
Ensure that user added properly to group developers:
# id vivekOutput:
uid=1122(vivek) gid=1125(vivek) groups=1125(vivek),1124(developers)
Please note that capital G (-G) option add user to a list of supplementary groups. Each group is separated from the next by a comma, with no intervening whitespace. For example, add user jerry to groups admins, ftp, www, and developers, enter:
# useradd -G admins,ftp,www,developers jerry
useradd example – Add a new user to primary group
To add a user tony to group developers use following command:
# useradd -g developers tony
# id tony
Sample outputs:
uid=1123(tony) gid=1124(developers) groups=1124(developers)
Please note that small -g option add user to initial login group (primary group). The group name must exist. A group number must refer to an already existing group.
usermod example – Add a existing user to existing group
Add existing user tony to ftp supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option :
# usermod -a -G ftp tony
Change existing user tony primary group to www:
# usermod -g www tony