$ usermod -Ga vboxusers pronIs neccessary to put -a, otherwise other groups will be erased. To see changes type:
$ idResources
http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
$ usermod -Ga vboxusers pron$ id
function cl {
if [ "$1" == "" ]
then
cd
else
cd $1
fi
ls
}
alias cd='cl'$ chmod +x ati-driver-installer-10-5-x86.x86_64.run
$/etc/init.d/gdm stop
#include
#include
void (*fp)(int);
void fun1(int a);
void fun2(int a);
main () {
int i=0;
fp=&fun1;
for(i;i<5;i++) {
(*fp)(i);
}
}
void fun1(int a) {
printf("Even number: %d\n",a);
fp=fun2;
}
void fun2(int a) {
printf("Odd number: %d\n",a);
fp=fun1;
}
Even number: 0
Odd number: 1
Even number: 2
Odd number: 3
Even number: 4
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.12
netmask 255.255.255.0
network 192.168.1.0
# Disable the use of the ARP protocol on this interface.
# So eth0 will not create ARP packets.
# This hack works because ifup configure network like that:
# ifconfig ${DEVICE} ${IPADDR} \
# netmask ${NETMASK} broadcast \
# ${BROADCAST} ${ARP:+arp}
broadcast 192.168.1.255 -arp
gateway 192.168.1.1
# Trusted IP and ARP (In this case only the router)
up arp -s 192.168.1.1 00:14:6c:4f:66:70auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.12
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
up arptables -F
up arptables -P INPUT DROP
up arptables -P OUTPUT DROP
up arptables -P FORWARD DROP
# Trusted IP and ARP (In this case only the router)
# Only ACCEPT connections from trusted gateway.
up arptables -A INPUT -s 192.168.1.1 \
--source-mac 00:14:6c:4f:66:70 -j ACCEPT
# Send replies only to the trusted hosts.
up arptables -A OUTPUT -d 192.168.1.1 \
--destination-mac 00:14:6c:4f:66:70 -j ACCEPT
# Add static entry into the ARP table to link your trusted host to its own MAC.
up arp -s 192.168.1.1 00:14:6c:4f:66:70Without autocd
pron@debian:~$ cd Desktop
pron@debian:~/Desktop$With autocd
pron@debian:~$ Desktop
cd Desktop
pron@debian:~/Desktop$$ shopt -s autocd
bash: shopt: autocd: invalid shell option name