Jump to content

Clickable SH file Ubuntu 13.10

WasabiKing
Go to solution Solved by UselessBread,

Nice I have one more question now that i have that code can I use it to  have Spotify startup when my pc boots too

sorry for the edit, I came across something easier.

http://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login

sadly I have no VM at hand, and can not try this out right now, but it should work.

oh and for spotify as well.

 

if for some reason that doesn't work you can still try the init thing

I am a noob when it comes to pragramming and i wonder if anyone could help me.

 

so, everytime I restart my pc for some reason my lan doesn't work so I have to type in the terminal "Sudo dhclient"

But I can do that everytime but when for example a friend or my family is using my PC they ofcourse don't know what they have to do

so i would like to have a file on my desktop which is named click to fix internet.

How do I do this.

if anyone has like a solution where i dont have to used "sudo dhclient" at all that would be great but i would still love to know how to make an sh file clickable  

 

P.S. I have tried making the file executable in properties but for some reason it doesn't work as is should and I diid make it an sh file

the code I used was just

 

Sudo dhclient

 

 

 

 

LINUX Unite!

Link to comment
Share on other sites

Link to post
Share on other sites

do you have yast installed? if so go to runlevel there, and set dhclient to autorun. Done

CPU: Intel i7 4790K @4.8GhZ  CPU Cooler: Be Quiet! Dark Rock Pro 2  Motherboard: Gigabyte Z97 UD3H  GPU: Asus ROG RX 480 8G OC Memory: 32GB Gskill Ares 2400Mhz  Storage: 2x Crucial M4 512GB SSD (raid0)  / 1TB Seagate FireCuda SSHD Case: Phanteks Enthoo Evolv ATX PSU: EVGA SuperNOVA P2 750W  Operating System: Windows 10 Enterprise LTSB (64 bit) Other: NZXT Hue+ LED Controller with 8 LED Strips for desk and PC lighting

 

Link to comment
Share on other sites

Link to post
Share on other sites

Ah nice I will try it out when I get home thanks Dr3nz4r!

 

Link to comment
Share on other sites

Link to post
Share on other sites

Nice I have one more question now that i have that code can I use it to  have Spotify startup when my pc boots too

Link to comment
Share on other sites

Link to post
Share on other sites

Nice I have one more question now that i have that code can I use it to  have Spotify startup when my pc boots too

sorry for the edit, I came across something easier.

http://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login

sadly I have no VM at hand, and can not try this out right now, but it should work.

oh and for spotify as well.

 

if for some reason that doesn't work you can still try the init thing

Link to comment
Share on other sites

Link to post
Share on other sites

I will sill use you method its harder to do so its more fun to do


can you maybe put the old post back

Link to comment
Share on other sites

Link to post
Share on other sites

I will sill use you method its harder to do so its more fun to do

can you maybe put the old post back

I added an article for that.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×