Why python is not running in linux | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why python is not running in linux

I have edited .xinitrc file. So! Not any GUI loads at start and I get terminal. I wants to just run PYTHON script at startup but not working. Content of .xinitrc file exec python /root/test.py

20th Jun 2021, 10:39 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
16 Answers
+ 2
Python works best on windows
21st Jun 2021, 3:34 PM
Tharul Nejana
Tharul Nejana - avatar
+ 1
I'm afraid this is fairly new to me and I can't help you with this. I'm following this thread to see the follow up of this interesting query.
21st Jun 2021, 5:10 AM
silentlearner
silentlearner - avatar
0
Does it work when you run this line on your terminal? python test.py
21st Jun 2021, 4:39 AM
silentlearner
silentlearner - avatar
0
silentlearner Yes It works As I told already, PYTHON interpreter is installed
21st Jun 2021, 4:59 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
0
Please help me to understand what is not working since it works?
21st Jun 2021, 5:02 AM
silentlearner
silentlearner - avatar
0
silentlearner .xinitrc is file which runs at start of Linux. Before I edited it, it had command to run XFCE desktop environment. I removed command to run XFCE desktop environment so not any desktop environment runs and I get only terminal. I Wanted to start a python script at startup of Linux. So I edited .xinitrc file to run PYTHON instead of Desktop Environment but it is not working. Not any python script is running
21st Jun 2021, 5:06 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 1
Dihen I'm using SLAX Linux And python interpreter is installed in it
20th Jun 2021, 12:58 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 1
only linux?
20th Jun 2021, 1:47 PM
Dihen
Dihen - avatar
- 1
Dihen Yes! It is Linux. What do you mean by only Linux. I'm using Linux which is based on Debian
20th Jun 2021, 3:08 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 3
silentlearner .xinitrc is file which runs at start of Linux. Before I edited it, it had command to run XFCE desktop environment. I removed command to run XFCE desktop environment so not any desktop environment runs and I get only terminal. I Wanted to start a python script at startup of Linux. So I edited .xinitrc file to run PYTHON instead of Desktop Environment but it is not working. Not any python script is running
21st Jun 2021, 4:02 PM
space izmir
space izmir - avatar
- 6
python is not supporting linux. use somthing else. do you have only linux?
20th Jun 2021, 12:53 PM
Dihen
Dihen - avatar
- 6
then other corses are supporting?
20th Jun 2021, 3:15 PM
Dihen
Dihen - avatar
- 6
and do you code from solo learn?
20th Jun 2021, 3:16 PM
Dihen
Dihen - avatar
- 6
i followed you
20th Jun 2021, 3:20 PM
Dihen
Dihen - avatar
- 6
some of your python codes are working in solo learn
20th Jun 2021, 3:23 PM
Dihen
Dihen - avatar
- 6
do you tryd html?
20th Jun 2021, 3:24 PM
Dihen
Dihen - avatar