Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
#!/bin/bash
echo -e "\033[32m
\033[34;1;7;5m AGORA VAI CONFIGURAR O READ-WRITE DOS DISCOS... Espere um momento!
\033[0m"
echo
apt-get update
apt-get install libfuse2 fuse-utils pmount
echo 'feito'
wget http://kent.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.1.tar.gz
tar zxvf fuse-2.6.1.tar.gz
cd fuse-2.6.1
./configure --prefix=/usr --sysconfdir=/etc
make
make install
wget http://www.ntfs-3g.org/ntfs-3g-1.810.tgz
tar xzvf ntfs-3g-1.810.tgz
cd /home/user/Desktop/ntfs-3g-1.810
./configure --prefix=/usr --sysconfdir=/etc
make
make install
cd..
echo "fuse" >> /etc/modules
modprobe fuse
sed -i '/sda1/ s/^/#/' /etc/fstab
echo "/dev/sda1 /media/Windows ntfs-3g defaults,silent,user,auto,umask=0,locale=pt_PT.utf8 0 0" >> /etc/fstab
umount -a
mount -a
echo
echo -e "\033[32m
\033[34;1;7;5m TERMINOU A CONFIGURAÇÃO... AGUARDE UM POUCO!
\033[0m"
echo TERMINOU A CONFIGURAÇÃO... AGUARDE UM POUCO
sleep 10
What I want is that the script runs in console with only a double click, as an executable program. Whats the commands I must put in the begin of the script for it run with a double click of mouse?
But is not possible that the script, itself, have a command thans make its run for itself by click with the mouse on it?
If you just want the script to run when you double-click it in your file manager, you just need to make the script executable, like this chmod +x your_script_name
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.